This constructor instantiates an existing product from the database.
Namespace:
Asi.iBO.CommerceAssembly: Asi.iBO (in Asi.iBO.dll) Version: 15.1.2.0
Syntax
| C# |
|---|
public CProduct( IiMISUser user, string productCode ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ user As IiMISUser, _ productCode As String _ ) |
| Visual C++ |
|---|
public: CProduct( IiMISUser^ user, String^ productCode ) |
Parameters
- user
- Type: Asi.iBO..::.IiMISUser
The IiMISUser object providing the security credentials of the logged in user.
- productCode
- Type: System..::.String
The key to the product to be instantiated
Exceptions
| Exception | Condition |
|---|---|
| Asi.iBO..::.ObjectNotFoundException | thrown when no product with the supplied productCode is found. |