GetByKey Method (ItemCategoryLink)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified item category link record from the Item_Category_Link table.
'Declaration
Public Shared Function GetByKey( _
ByVal categoryId As Integer, _
ByVal itemId As String _
) As DataSet
'Usage
Dim categoryId As Integer
Dim itemId As String
Dim value As DataSet
value = ItemCategoryLink.GetByKey(categoryId, itemId)
public static DataSet GetByKey(
int categoryId,
string itemId
)
Parameters
- categoryId
- Required. Holds the ID of the category.
- itemId
- Required. Holds the ID of the item.
Return Value
Returns a DataSet that contains the DataRow of the specified item category link in the Item_Category_Link table. If no matching record for the specified item category link is found, an empty DataSet is returned.