Share via


UsageOption Property

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

Gets or sets a value indicating whether the usage option of the PromoCodeDefinition is set.

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

Syntax

'Declaration
Public Property UsageOption As PromoCodeUsageOption
'Usage
Dim instance As PromoCodeUsageValidationException
Dim value As PromoCodeUsageOption

value = instance.UsageOption

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

Property Value

Type: Microsoft.CommerceServer.Marketing..::.PromoCodeUsageOption
true if the usage option field of the PromoCodeDefinition is set; otherwise false.

Remarks

This property, in conjunction with IsPublicCodeSet property determines if the PromoCodeUsageValidationException is thrown.

Permissions

See Also

Reference

PromoCodeUsageValidationException Class

PromoCodeUsageValidationException Members

Microsoft.CommerceServer.Marketing Namespace