Delete Method (UtilHistory)
- Last UpdatedNov 06, 2025
- 1 minute read
The Delete() method deletes the specified utilization event. The previous event is extended to the end time of the event that is being deleted.
'Declaration
Public Shared Sub Delete( _
ByVal sessionId As Integer, _
ByVal entityId As Integer, _
ByVal eventTimeUtc As Date, _
ByRef recordsAffected As Nullable(Of Integer) _
)
'Usage
Dim sessionId As Integer
Dim entityId As Integer
Dim eventTimeUtc As Date
Dim recordsAffected As Nullable(Of Integer)
UtilHistory.Delete(sessionId, entityId, eventTimeUtc, recordsAffected)
public static void Delete(
int sessionId,
int entityId,
DateTime eventTimeUtc,
out Nullable<int> recordsAffected
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- entityId
- Required. Holds the ID of the entity whose utilization record is being deleted.
- eventTimeUtc
- Required. Holds the date/time in UTC for the start time of the utilization event that is being deleted. This parameter, along with the entity ID, is used to identify the event record.
- recordsAffected
Output. Holds the number of records affected.