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