Partilhar via


DiscountType Property

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

Gets or sets the type of this discount.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Property DiscountType As DiscountType
'Usage
Dim instance As Discount
Dim value As DiscountType

value = instance.DiscountType

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

Property Value

Type: Microsoft.CommerceServer.Marketing..::.DiscountType
A DiscountType describing the type of discount. The default is LineItem.

Remarks

If set to OrderLevelCustom, CustomOrderLevelOfferType should be set to the defined custom offer type.

Note

MaxAwards and PerOrderLimit must be 1 for order-level discounts. The MaxAwards Property is exposed as the Award Limit in the Marketing Manager UI. The PerOrderLimit Property is exposed as the Basket Limit in the Marketing Manager UI.

Permissions

See Also

Reference

Discount Class

Discount Members

Microsoft.CommerceServer.Marketing Namespace