Partager via


TypeOfDiscount Property

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

Gets or sets the meaning of the value stored in the discount value.

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

Syntax

'Declaration
Public Property TypeOfDiscount As DiscountType
'Usage
Dim instance As DiscountApplicationRecordBase
Dim value As DiscountType

value = instance.TypeOfDiscount

instance.TypeOfDiscount = value
public DiscountType TypeOfDiscount { get; set; }
public:
property DiscountType TypeOfDiscount {
    DiscountType get ();
    void set (DiscountType value);
}
public function get TypeOfDiscount () : DiscountType
public function set TypeOfDiscount (value : DiscountType)

Property Value

Type: Microsoft.CommerceServer.Orders..::.DiscountType
A DiscountType containing the meaning of the numeric value in the DiscountValue.

Remarks

The DiscountType specifies how a Discount is applied.

Permissions

See Also

Reference

DiscountApplicationRecordBase Class

DiscountApplicationRecordBase Members

Microsoft.CommerceServer.Runtime.Orders Namespace