UpdateSpecific Method (ShiftSched)
- Last UpdatedNov 06, 2025
- 3 minute read
The UpdateSpecific() method updates selected columns of the specified shift schedule record in the Shift_Sched table.
Note: This method is no longer supported. Instead, use the corresponding method in the ShiftSchedule class.
'Declaration
<ObsoleteAttribute("ShiftSched.UpdateSpecific method is no longer supported. Please call the corresponding updated method.")>
Public Shared Sub UpdateSpecific( _
ByVal sessionId As Integer, _
ByVal entId As Integer, _
ByVal startDay As Integer, _
ByVal shiftId As Integer, _
ByVal startTime As Nullable(Of Date), _
ByVal endTime As Nullable(Of Date), _
ByVal break1Start As DBDateTime, _
ByVal break1End As DBDateTime, _
ByVal break2Start As DBDateTime, _
ByVal break2End As DBDateTime, _
ByVal break3Start As DBDateTime, _
ByVal break3End As DBDateTime, _
ByVal lastEditComment As DBString, _
ByRef lastEditAt As Date _
)
'Usage
Dim sessionId As Integer
Dim entId As Integer
Dim startDay As Integer
Dim shiftId As Integer
Dim startTime As Nullable(Of Date)
Dim endTime As Nullable(Of Date)
Dim break1Start As DBDateTime
Dim break1End As DBDateTime
Dim break2Start As DBDateTime
Dim break2End As DBDateTime
Dim break3Start As DBDateTime
Dim break3End As DBDateTime
Dim lastEditComment As DBString
Dim lastEditAt As Date
ShiftSched.UpdateSpecific(sessionId, entId, startDay, shiftId, startTime, endTime, break1Start, break1End, break2Start, break2End, break3Start, break3End, lastEditComment, lastEditAt)
[Obsolete("ShiftSched.UpdateSpecific method is no longer supported. Please call the corresponding updated method.")]
public static void UpdateSpecific(
int sessionId,
int entId,
int startDay,
int shiftId,
Nullable<DateTime> startTime,
Nullable<DateTime> endTime,
DBDateTime break1Start,
DBDateTime break1End,
DBDateTime break2Start,
DBDateTime break2End,
DBDateTime break3Start,
DBDateTime break3End,
DBString lastEditComment,
ref DateTime lastEditAt
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- 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.
- startTime
- Optional. Holds a shift start time (the date is ignored).
- endTime
- Optional. Holds a shift end time (the date is ignored).
- break1Start
- Optional. Holds a shift break1 start time (the date is ignored).
- break1End
- Optional. Holds a shift break1 end time (the date is ignored).
- break2Start
- Optional. Holds a shift break2 start time (the date is ignored).
- break2End
- Optional. Holds a shift break2 end time (the date is ignored).
- break3Start
- Optional. Holds a shift break3 start time (the date is ignored).
- break3End
- Optional. Holds a shift break3 end time (the date is ignored).
- lastEditComment
- Optional. Holds comments about why this record is being changed.
- 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 update to succeed.
Output. Holds the date/time value when this record was updated by this called method.
Return Value
Observe the following input parameter rules:
- Optional non-DB* parameters: Either enter a new value or leave the existing value unchanged by passing a null.
- Optional DB* parameters: To clear the existing value and enter an empty value, pass DB*.null (e.g., DBInt.null). To leave the existing value unchanged, pass a null.