GetEventStartTimeForAShift(Int32,DBDateTime,Nullable<Boolean>,DateTime) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The GetEventStartTimeForAShift() method retrieves the first utilization event that occurred on a shift for the specified entity.
This overload of the method uses an entity ID to specify the entity.
'Declaration
Public Overloads Shared Sub GetEventStartTimeForAShift( _
ByVal entId As Integer, _
ByVal shiftStartTime As DBDateTime, _
ByVal usePreviousShift As Nullable(Of Boolean), _
ByRef eventStartTime As Date _
)
'Usage
Dim entId As Integer
Dim shiftStartTime As DBDateTime
Dim usePreviousShift As Nullable(Of Boolean)
Dim eventStartTime As Date
UtilExec.GetEventStartTimeForAShift(entId, shiftStartTime, usePreviousShift, eventStartTime)
public static void GetEventStartTimeForAShift(
int entId,
DBDateTime shiftStartTime,
Nullable<bool> usePreviousShift,
out DateTime eventStartTime
)
Parameters
- entId
- Required. Holds the ID of the entity whose utilization events are being retrieved.
- shiftStartTime
- Optional filter parameter. Holds a shift start time by which to filter the utilization events.
- usePreviousShift
- Optional filter parameter. Holds a flag that specifies whether the previous shift should be used to identify the first event on a shift.
- eventStartTime
- Output. A datetime variable must be supplied to this parameter to get a value back from this method. Note that the existing value on this string will be overwritten with a value retrieved by this method while executing this method.
For optional filter parameters that are not to be included as a filter, pass a null.
This method returns the event start time from the first utilization event that occurred on the supplied shift start time. If the supplied shift start time is null, then this method returns the event start time from the first utilization event that occurred on the current shift.