Partilhar via


MaxAwards Property

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

Gets or sets the maximum number of awards for the discount.

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

Syntax

'Declaration
Public Property MaxAwards As Integer
'Usage
Dim instance As Discount
Dim value As Integer

value = instance.MaxAwards

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

Property Value

Type: System..::.Int32
The maximum number of awards a user can receive from the discount. The default is 0.

Remarks

The MaxAwards value must be greater than or equal to zero.

Permissions

See Also

Reference

Discount Class

Discount Members

Microsoft.CommerceServer.Marketing Namespace