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