GetByKey Method (LineEntLink)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified LineClass-EntityClass link or Line-Entity link record from the Line_Ent_Link table.
'Declaration
Public Shared Function GetByKey( _
ByVal lineId As Integer, _
ByVal entId As Integer _
) As DataSet
'Usage
Dim lineId As Integer
Dim entId As Integer
Dim value As DataSet
value = LineEntLink.GetByKey(lineId, entId)
Parameters
- lineId
- Required. Holds the ID of the production line or line class.
- entId
- Required. Holds the ID of the entity or entity class.
Return Value
Returns a DataSet that contains the DataRow of the specified link record in the Line_Ent_Link table. If no matching record is found, an empty DataSet is returned.