Share via


Discount Class

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

Defines a single discount within a campaign.

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

Syntax

'Declaration
<ComVisibleAttribute(False)> _
Public Class Discount _
    Inherits DisplayableCampaignItem
'Usage
Dim instance As Discount
[ComVisibleAttribute(false)]
public class Discount : DisplayableCampaignItem
[ComVisibleAttribute(false)]
public ref class Discount : public DisplayableCampaignItem
public class Discount extends DisplayableCampaignItem

Remarks

The Discount class defines details of a discount. A Discount object contains information such as the condition, award, offer amount, offer type, and eligibility requirements of a discount. It can also have one PromoCodeDefinition object associated with it. The base type of a discount is the CampaignItem class.

Inheritance Hierarchy

System..::.Object
  Microsoft.CommerceServer.Marketing..::.MarketingServices
    Microsoft.CommerceServer.Marketing..::.CampaignItem
      Microsoft.CommerceServer.Marketing..::.DisplayableCampaignItem
        Microsoft.CommerceServer.Marketing..::.Discount

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Discount Members

Microsoft.CommerceServer.Marketing Namespace