次の方法で共有


InStockQuantity Property

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

See Also

Reference

LineItem Class

LineItem Members

Microsoft.CommerceServer.Runtime.Orders Namespace