Delete Method (ShiftPattern)
- Last UpdatedNov 06, 2025
- 1 minute read
The Delete() method deletes the specified shift pattern from the Shift_Pattern table.
'Declaration
Public Shared Sub Delete( _
ByVal sessionId As Integer, _
ByVal patternId As Integer, _
ByVal lastEditAt As Nullable(Of Date) _
)
'Usage
Dim sessionId As Integer
Dim patternId As Integer
Dim lastEditAt As Nullable(Of Date)
ShiftPattern.Delete(sessionId, patternId, lastEditAt)
public static void Delete(
int sessionId,
int patternId,
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 pattern to be deleted.
- lastEditAt
- Optional. Holds the datetime 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.