Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Indicates the in-stock quantity for the current line item.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Property InStockQuantity As Decimal
'Usage
Dim instance As LineItem
Dim value As Decimal
value = instance.InStockQuantity
instance.InStockQuantity = value
public decimal InStockQuantity { get; set; }
public:
property Decimal InStockQuantity {
Decimal get ();
void set (Decimal value);
}
public function get InStockQuantity () : decimal
public function set InStockQuantity (value : decimal)
Property Value
Type: System..::.Decimal
The number of items in stock for the current instance.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The value being set is less than zero. Assign a value to InStockQuantity that is greater than or equal to zero to prevent this exception. |
InvalidOperationException | quantity is not a whole number. |
Remarks
The inventory pipeline component is responsible for populating this property.
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.