UsageLimit Property

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

Gets or sets the maximum number of times each promotion code created for the PromoCodeDefinition can be used.

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

Syntax

'Declaration
Public Property UsageLimit As Integer
'Usage
Dim instance As PromoCodeDefinition
Dim value As Integer

value = instance.UsageLimit

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

Property Value

Type: System..::.Int32
The maximum number of times each promotion code created for the PromoCodeDefinition can be used. The default value is 0.

Remarks

A value of zero indicates unlimited use. When this value is nonzero, the system employs a reservation system.

Permissions

See Also

Reference

PromoCodeDefinition Class

PromoCodeDefinition Members

Microsoft.CommerceServer.Marketing Namespace