GetByKey Method (LaborDeptEntLink)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified labor department/entity link record from the Labor_Dept_Ent_Link table.
'Declaration
Public Shared Function GetByKey( _
ByVal entId As Integer, _
ByVal deptId As String _
) As DataSet
'Usage
Dim entId As Integer
Dim deptId As String
Dim value As DataSet
value = LaborDeptEntLink.GetByKey(entId, deptId)
Parameters
- entId
- Required. Holds the ID of the entity.
- deptId
- Required. Holds the ID of the labor department.
Return Value
Returns a DataSet that contains the DataRow of the specified labor department/entity link in the Labor_Dept_Ent_Link table. If no matching record for the specified labor department is found, an empty DataSet is returned.