GetByKey Method (ShiftSchedule)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified shift schedule record from the Shift_Schedule table.
Parameters
- patternId
- Required. Holds the ID of the shift pattern to which the shift is assigned.
- startTime
- Required. Holds the shift start time (the date portion of the parameter is ignored).
- endTime
- Required. Holds the shift end time (the date portion of the parameter is ignored).
- shiftId
- Required. Holds the ID of the shift to which the schedule applies.
Return Value
Returns a DataSet that contains the DataRow of the specified shift schedule in the Shift_Schedule table. If no matching record for the specified shift schedule is found, an empty DataSet is returned.