AdjustDuration Method
- Last UpdatedNov 06, 2025
- 1 minute read
Beginning with MES version 6.0, the AdjustDuration() method is obsolete (the MES middleware does nothing when this method is called). Instead, use the UpdateEvent() method in the UtilHistory class.
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.
- eventTime
- Required. Holds the date/time of the utilization event.
- duration
- Required. Holds the new duration in seconds. If 0 is passed, then the event is deleted and the following event is extended to fill in the gap. A negative value will cause an error to be raised.