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 or sets the maximum number of times this discount can be applied to a basket.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Property PerOrderLimit As Integer
'Usage
Dim instance As Discount
Dim value As Integer
value = instance.PerOrderLimit
instance.PerOrderLimit = value
public int PerOrderLimit { get; set; }
public:
property int PerOrderLimit {
int get ();
void set (int value);
}
public function get PerOrderLimit () : int
public function set PerOrderLimit (value : int)
Property Value
Type: System..::.Int32
The maximum number of times this discount can be applied to a basket. The default value is 0.
Exceptions
Exception | Condition |
---|---|
MinimumValueValidationException | PerOrderLimit has been set to a number smaller than 0. |
MaximumValueValidationException | PerOrderLimit has been set to a number greater than the maximum allowed. |
Remarks
A value of 0 indicates an unlimited discount. PerOrderLimit value must be greater than or equal to zero.
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.