Delete Method (ShiftSchedule)
- Last UpdatedNov 06, 2025
- 1 minute read
The Delete() method deletes the specified shift schedule record from the Shift_Schedule table.
'Declaration
Public Shared Sub Delete( _
ByVal sessionId As Integer, _
ByVal patternId As Integer, _
ByVal startTime As Date, _
ByVal endTime As Date, _
ByVal shiftId As Integer, _
ByVal lastEditAt As Nullable(Of Date) _
)
'Usage
Dim sessionId As Integer
Dim patternId As Integer
Dim startTime As Date
Dim endTime As Date
Dim shiftId As Integer
Dim lastEditAt As Nullable(Of Date)
ShiftSchedule.Delete(sessionId, patternId, startTime, endTime, shiftId, lastEditAt)
public static void Delete(
int sessionId,
int patternId,
DateTime startTime,
DateTime endTime,
int shiftId,
Nullable<DateTime> lastEditAt
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- patternId
- Required. Holds the ID of the shift pattern.
- 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.
- lastEditAt
Optional. Holds the date/time when this record was added or last edited, for optimistic concurrency control. If it is specified, the passed value must match the lastEditAt value in the record for the delete to succeed.