ItemClass Constructor(DataRow,Boolean)
- Last UpdatedNov 06, 2025
- 1 minute read
The ItemClass() method is the constructor used to instantiate an item class. This overload of the method loads the specified item class from a previously retrieved DataRow and, optionally, the item class's attribute data if the loadAttributes flag is true. This overload is useful when a list of item classes has already been retrieved from the database as a DataSet.
'Declaration
Public Function New( _
ByVal drItemClass As DataRow, _
ByVal loadAttributes As Boolean _
)
public ItemClass(
DataRow drItemClass,
bool loadAttributes
)
Parameters
- drItemClass
- Required. Holds a DataRow containing the required fields from the Item_Class table.
- loadAttributes
- Required. Holds a flag that, if set to true, specifies that the item class's attributes should be loaded.