Lot Constructor(DataRow,Boolean)
- Last UpdatedNov 06, 2025
- 1 minute read
The Lot() method is the constructor used to instantiate a lot. This overload of the method loads the lot specified by a previously retrieved DataRow from the database and, optionally, the lot's attribute data if the loadAttributes flag is true. This overload is useful when all lots have already been retrieved from the database as a DataSet.
'Declaration
Public Function New( _
ByVal drItemInv As DataRow, _
ByVal loadAttributes As Boolean _
)
public Lot(
DataRow drItemInv,
bool loadAttributes
)
Parameters
- drItemInv
- Required. Holds a DataRow that contains the required fields from the Lot table.
- loadAttributes
- Required. Holds a flag that, if set to true, specifies that the attributes for the lot should be loaded.