Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.