Поделиться через


PromoCodeUsageOption Enumeration

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

Specifies the type of a promotion code definition.

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

Syntax

'Declaration
<ComVisibleAttribute(False)> _
Public Enumeration PromoCodeUsageOption
'Usage
Dim instance As PromoCodeUsageOption
[ComVisibleAttribute(false)]
public enum PromoCodeUsageOption
[ComVisibleAttribute(false)]
public enum class PromoCodeUsageOption
public enum PromoCodeUsageOption

Members

Member name Description
Private Generates a batch of promotion codes. These codes may or may not have a user identity associated with them. If present, the identities are used only for tracking purposes. The recipient of a Private promotion code can forward the promotion code to one or more other users. These codes may or may not have an associated usage limit. The usage limit is the total usage for each generated code, not a per-user usage.
Public Contains a single code that any user may redeem. There is no user identity associated with the promotion codes. Typically a public promotion code is widely published and has either a large usage limit or no usage limit defined.
Restricted Refers to a batch of generated promotion codes that have user identities associated. These promotion codes have a restriction that only the associated user may redeem the promo code. This type of code commonly has a usage limit of one, but could also be defined as unlimited usage.

Remarks

The enumeration value specifies if the promotion code definition is Private, Public, or Restricted.

A PromoCodeUsageValidationException exception is thrown if either of the following occurs:

See Also

Reference

Microsoft.CommerceServer.Marketing Namespace