Partager via


PreorderQuantity Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets or sets the pre-order quantity for the current line item.

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Property PreorderQuantity As Decimal
'Usage
Dim instance As LineItem
Dim value As Decimal

value = instance.PreorderQuantity

instance.PreorderQuantity = value
public decimal PreorderQuantity { get; set; }
public:
property Decimal PreorderQuantity {
    Decimal get ();
    void set (Decimal value);
}
public function get PreorderQuantity () : decimal
public function set PreorderQuantity (value : decimal)

Property Value

Type: System..::.Decimal
The number of pre-ordered items for the current instance. Cannot be zero or less.

Exceptions

Exception Condition
ArgumentException

The value being set is less than zero. Assign PreorderQuantity a value 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