GetByKey Method (ShiftSched)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified shift schedule record from the Shift_Sched table.
Note: This method is no longer supported. Instead, use the corresponding method in the ShiftSchedule class.
'Declaration
<ObsoleteAttribute("ShiftSched.GetByKey method is no longer supported. Please call the corresponding updated method.")>
Public Shared Function GetByKey( _
ByVal entId As Integer, _
ByVal startDay As Integer, _
ByVal shiftId As Integer _
) As DataSet
'Usage
Dim entId As Integer
Dim startDay As Integer
Dim shiftId As Integer
Dim value As DataSet
value = ShiftSched.GetByKey(entId, startDay, shiftId)
[Obsolete("ShiftSched.GetByKey method is no longer supported. Please call the corresponding updated method.")]
public static DataSet GetByKey(
int entId,
int startDay,
int shiftId
)
Parameters
- entId
Required. Holds the ID of the entity to which the shift schedule applies.
- startDay
- Required. Holds an integer that indicates the shift's start day of the week. The value 0 = Sunday and 6 = Saturday.
- 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_Sched table. If no matching record for the specified shift schedule is found, an empty DataSet is returned.