LogOnEntity Constructor(Int32,String,String,String,Nullable<Double>)
- Last UpdatedNov 06, 2025
- 2 minute read
The LogOnEntity() method is the constructor for the LogOnEntity class. This overload of the method creates a LogOnEntity object with the values for all the properties.
'Declaration
Public Function New( _
ByVal entityId As Integer, _
ByVal entityName As String, _
ByVal laborCode As String, _
ByVal laborDepartmentId As String, _
ByVal percentToApply As Nullable(Of Double) _
)
'Usage
Dim entityId As Integer
Dim entityName As String
Dim laborCode As String
Dim laborDepartmentId As String
Dim percentToApply As Nullable(Of Double)
Dim instance As New LogOnEntity(entityId, entityName, laborCode, laborDepartmentId, percentToApply)
public LogOnEntity(
int entityId,
string entityName,
string laborCode,
string laborDepartmentId,
Nullable<double> percentToApply
)
Parameters
- entityId
Required. Holds the ID of the entity to log on to.
- entityName
Optional. Holds the name of the entity to log on to. This is only used for error reporting and may be set to null. In that case, the entity ID is used in error reporting.
- laborCode
Optional. Holds a code that indicates the type of labor to apply to the entity being logged on to. If this is set to null, the default labor category for the entity is used.
- laborDepartmentId
- Optional. Holds the ID of the department to which to assign the labor. If this is null, the entity's default labor department is used.
- percentToApply
Optional. Holds the percentage of labor to apply to the entity if logging on to more than one entity. If set to null, by default the percentage of labor is evenly distributed across all entities.