Partager via


UsageOption Property

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

Gets the usage option for the current PromoCodeDefintion object.

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

Syntax

'Declaration
Public ReadOnly Property UsageOption As PromoCodeUsageOption
'Usage
Dim instance As PromoCodeDefinition
Dim value As PromoCodeUsageOption

value = instance.UsageOption
public PromoCodeUsageOption UsageOption { get; }
public:
property PromoCodeUsageOption UsageOption {
    PromoCodeUsageOption get ();
}
public function get UsageOption () : PromoCodeUsageOption

Property Value

Type: Microsoft.CommerceServer.Marketing..::.PromoCodeUsageOption
A PromoCodeUsageOption enumeration value indicating the usage option for the current definition.

Remarks

The enumeration value shall be one of the following:

  • Private - 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.

  • Restricted - These promotion codes have a restriction that only the associated user may redeem the promo code.

Permissions

See Also

Reference

PromoCodeDefinition Class

PromoCodeDefinition Members

Microsoft.CommerceServer.Marketing Namespace