Delete Method (ShiftPatternEntLink)
- Last UpdatedMar 17, 2026
- 2 minute read
'Declaration
Public Shared Sub Delete( _
ByVal sessionId As Integer, _
ByVal shiftSchedEntId As Integer, _
ByVal entId As Integer, _
ByVal patternId As Integer, _
ByVal lastEditAt As Nullable(Of Date) _
)
'Usage
Dim sessionId As Integer
Dim shiftSchedEntId As Integer
Dim entId As Integer
Dim patternId As Integer
Dim lastEditAt As Nullable(Of Date)
ShiftPatternEntLink.Delete(sessionId, shiftSchedEntId, entId, patternId, lastEditAt)
public static void Delete(
int sessionId,
int shiftSchedEntId,
int entId,
int patternId,
Nullable<DateTime> lastEditAt
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- shiftSchedEntId
Required. Holds the ID of the entity that supplies the shift schedule for the entity being linked (i.e., the entity identified by entId).
For regular shift patterns, the shiftSchedEntId entity and the entId entity will be the same entity.
For holiday and overtime shift patterns, the entities will be different if the pattern is being linked to an entity that cannot schedule shifts. In that case, the shiftSchedEntId entity will be the nearest ancestor entity that can schedule shifts for the entId entity.
- entId
Required. Holds the ID of the entity that is being linked to the shift pattern.
For a regular shift pattern, the entId entity will be the same as the shiftSchedEntID entity.
For holiday and overtime shift patterns, the entities will be different if the pattern is being linked to an entity that cannot schedule shifts. In that case, the shiftSchedEntId entity will be the nearest ancestor entity that can schedule shifts for the entId entity.
- patternId
- Required. Holds the ID of the shift pattern.
- 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 update to succeed.