GetByKey Method (BottleneckHistory)
- Last UpdatedMar 17, 2026
- 1 minute read
The GetByKey() method retrieves the specified bottleneck history record from the Bottleneck_History table.
'Declaration
Public Shared Function GetByKey( _
ByVal lineId As Integer, _
ByVal entId As Integer, _
ByVal startTimeUtc As Date _
) As DataSet
'Usage
Dim lineId As Integer
Dim entId As Integer
Dim startTimeUtc As Date
Dim value As DataSet
value = BottleneckHistory.GetByKey(lineId, entId, startTimeUtc)
Parameters
- lineId
- Required. Holds the ID of the production line.
- entId
- Required. Holds the ID of the entity.
- startTimeUtc
- Required. Holds the start time, in UTC, of the bottleneck period.
Return Value
Returns a DataSet that contains the DataRow of the specified bottleneck history record in the Bottleneck_History table. If no matching record is found, an empty DataSet is returned.