InventoryQuantityException Constructor (String, String, InventoryCondition)
Initializes a new instance of the ValidationException class with the specified error message and parameters.
Namespace: Microsoft.CommerceServer.Inventory
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
entityName As String, _
inventoryCondition As InventoryCondition _
)
'Usage
Dim message As String
Dim entityName As String
Dim inventoryCondition As InventoryCondition
Dim instance As New InventoryQuantityException(message, _
entityName, inventoryCondition)
public InventoryQuantityException(
string message,
string entityName,
InventoryCondition inventoryCondition
)
public:
InventoryQuantityException(
String^ message,
String^ entityName,
InventoryCondition inventoryCondition
)
public function InventoryQuantityException(
message : String,
entityName : String,
inventoryCondition : InventoryCondition
)
Parameters
- message
Type: System..::.String
The error message that explains the reason for the exception.
- entityName
Type: System..::.String
The name of the object which failed validation.
- inventoryCondition
Type: Microsoft.CommerceServer.Inventory..::.InventoryCondition
The inventory condition.
Remarks
The exception that is thrown when a product does not meet the inventory quantity conditions.
This class, along with InvalidProductCatalogMappingException class derive from the InventoryException class.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
InventoryQuantityException Class
InventoryQuantityException Members