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