GetByKey(String,Int32) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified item class attribute record from the Item_Class_Attr table.
This overload of the method identifies the item class attribute by its ID.
'Declaration
Public Overloads Shared Function GetByKey( _
ByVal itemClassId As String, _
ByVal attrId As Integer _
) As DataSet
'Usage
Dim itemClassId As String
Dim attrId As Integer
Dim value As DataSet
value = ItemClassAttr.GetByKey(itemClassId, attrId)
public static DataSet GetByKey(
string itemClassId,
int attrId
)
Parameters
- itemClassId
- Holds the ID of the item class for which an attribute is being retrieved
- attrId
- Required. Holds the ID of the attribute to be retrieved.
Return Value
Returns a DataSet that contains the DataRow of the specified item class attribute in the Item_Class_Attr table. If no matching record for the specified item class attribute is found, an empty DataSet is returned.