UpdateDurations(Int32,String,String,Nullable<Int32>,Nullable<Int32>,Nullable<DateTime>) Method
- Last UpdatedMar 17, 2026
- 2 minute read
The UpdateDurations() method updates the duration of current events for one or all entities that can capture utilization.
This overload of the method uses a site name and entity name to optionally specify an entity. This overload also allows the job position, current log ID, and event time to be updated.
Note: Beginning with MES version 6.0, this method is obsolete. It is included only for backward compatibility.
'Declaration
Public Overloads Shared Sub UpdateDurations( _
ByVal sessionId As Integer, _
ByVal entName As String, _
ByVal siteName As String, _
ByVal jobPos As Nullable(Of Integer), _
ByVal curLogId As Nullable(Of Integer), _
ByVal eventTime As Nullable(Of Date) _
)
'Usage
Dim sessionId As Integer
Dim entName As String
Dim siteName As String
Dim jobPos As Nullable(Of Integer)
Dim curLogId As Nullable(Of Integer)
Dim eventTime As Nullable(Of Date)
UtilExec.UpdateDurations(sessionId, entName, siteName, jobPos, curLogId, eventTime)
public static void UpdateDurations(
int sessionId,
string entName,
string siteName,
Nullable<int> jobPos,
Nullable<int> curLogId,
Nullable<DateTime> eventTime
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- entName
- Optional. Holds the name of the entity whose current event durations are being updated. If set to null, the durations for current events for all entities that can capture utilization are updated.
- siteName
- Optional. Holds the site name of the entity whose current event durations are being updated.
- jobPos
- Optional. Holds the updated the job position.
- curLogId
- Optional. Holds the updated the current log ID.
- eventTime
- Optional. Holds the updated event time.