OrderLevelDiscountAmount Property

Gets or sets the order-based discount amount for a line item.

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


Public Property OrderLevelDiscountAmount As Decimal
Dim instance As LineItem
Dim value As Decimal

value = instance.OrderLevelDiscountAmount

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

Property Value

Type: System..::.Decimal
The sum of all per-order line item discount amounts. Cannot be less than zero.


Exception Condition

The value being set is less than zero. Assign OrderLevelDiscountAmount a value greater than or equal to zero to prevent this exception.


The total discounted amount being applied to the line item based on predefined OrderGroup level discounts. This is not the new price of the item. This is simply the amount discounted by the OrderLevelDiscountApply component in the basket pipeline.


See Also


LineItem Class

LineItem Members

Microsoft.CommerceServer.Runtime.Orders Namespace