Item Constructor(String,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 specified item from the database and, optionally, the item's attribute data if the loadAttributes flag is true.
'Declaration
Public Function New( _
ByVal itemId As String, _
ByVal loadAttributes As Boolean _
)
public Item(
string itemId,
bool loadAttributes
)
Parameters
- itemId
- Required. Holds the ID of the item that should be loaded for this instance.
- loadAttributes
- Required. Holds a flag that, if set to true, specifies that the item's attributes should be loaded.