GetByKey(Int32,String) Method
- Last UpdatedMar 17, 2026
- 1 minute read
The GetByKey() method retrieves the specified shift attribute record from the Shift_Attr table.
This overload of the method uses a shift ID to identify the shift and an attribute description to identify the attribute.
'Declaration
Public Overloads Shared Function GetByKey( _
ByVal shiftId As Integer, _
ByVal attrDescription As String _
) As DataSet
public static DataSet GetByKey(
int shiftId,
string attrDescription
)
Parameters
- shiftId
- Required. Holds the ID of the shift for which an attribute is being retrieved.
- attrDescription
- Required. Holds the description of the attribute to be retrieved.
Return Value
Returns a DataSet that contains the DataRow of the specified shift attribute in the Shift_Attr table. If no matching record for the specified shift attribute is found, an empty DataSet is returned.