GetByKey Method (ShiftPatternEntLink)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified shift pattern-entity link record from the Shift_Pattern_Ent_Link table.
'Declaration
Public Shared Function GetByKey( _
ByVal shiftSchedEntId As Integer, _
ByVal entId As Integer, _
ByVal patternId As Integer _
) As DataSet
'Usage
Dim shiftSchedEntId As Integer
Dim entId As Integer
Dim patternId As Integer
Dim value As DataSet
value = ShiftPatternEntLink.GetByKey(shiftSchedEntId, entId, patternId)
Parameters
- shiftSchedEntId
- Required. Holds the ID of the entity that supplies the shift schedule for the entity that is linked to a shift pattern (entId).
- entId
- Required. Holds the ID of the entity that is linked to the shift pattern.
- patternId
- Required. Holds the ID of the shift pattern that is linked to the entity.
Return Value
Returns a DataSet that contains the DataRow of the specified shift pattern-entity link record in the Shift_Pattern_Ent_Link table. If no matching record for the specified shift pattern-entity link record is found, an empty DataSet is returned.