GetByKey(String,String) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified work order attribute record from the WO_Attr table.
This overload of the method identifies the work order attribute by its description.
'Declaration
Public Overloads Shared Function GetByKey( _
ByVal woId As String, _
ByVal attrDescription As String _
) As DataSet
public static DataSet GetByKey(
string woId,
string attrDescription
)
Parameters
- woId
- Required. Holds the ID of the work order whose attribute is being retrieved.
- attrDescription
- Required. Holds the ID of the attribute that is being retrieved.
Return Value
Returns a DataSet that contains a DataRow for the specified work order attribute in the WO_Attr table. If no matching record for the specified work order attribute is found, an empty DataSet is returned.