GetByKey Method (UtilHistory)
- Last UpdatedMar 17, 2026
- 1 minute read
The GetByKey() method retrieves the specified utilization history record from the Util_History table.
'Declaration
Public Shared Function GetByKey( _
ByVal entityId As Integer, _
ByVal eventTimeUtc As Date _
) As DataSet
'Usage
Dim entityId As Integer
Dim eventTimeUtc As Date
Dim value As DataSet
value = UtilHistory.GetByKey(entityId, eventTimeUtc)
public static DataSet GetByKey(
int entityId,
DateTime eventTimeUtc
)
Parameters
- entityId
- Required. Holds the ID of the entity.
- eventTimeUtc
- Required. Holds the start of the event time in UTC.
Return Value
Returns a DataSet that contains the DataRow of the specified utilization history record in the Util_History table. If no matching record for the specified entity ID and event time is found, an empty DataSet is returned.