GetEventStartTimeForAShift(String,String,Nullable<DateTime>,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 a site name and entity name to specify the entity.
'Declaration
Public Overloads Shared Sub GetEventStartTimeForAShift( _
ByVal entName As String, _
ByVal siteName As String, _
ByVal shiftStartTime As Nullable(Of Date), _
ByVal usePreviousShift As Nullable(Of Boolean), _
ByRef eventStartTime As Date _
)
'Usage
Dim entName As String
Dim siteName As String
Dim shiftStartTime As Nullable(Of Date)
Dim usePreviousShift As Nullable(Of Boolean)
Dim eventStartTime As Date
UtilExec.GetEventStartTimeForAShift(entName, siteName, shiftStartTime, usePreviousShift, eventStartTime)
public static void GetEventStartTimeForAShift(
string entName,
string siteName,
Nullable<DateTime> shiftStartTime,
Nullable<bool> usePreviousShift,
out DateTime eventStartTime
)
Parameters
- entName
- Required. Holds the name of the entity whose utilization events are being retrieved.
- siteName
- Optional filter parameter. Holds the site name for the entity.
- 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.