Partager via


Basis Property

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

Gets or sets the type of the discount buy condition.

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

Syntax

'Declaration
Public Property Basis As ConditionBasis
'Usage
Dim instance As DiscountCondition
Dim value As ConditionBasis

value = instance.Basis

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

Property Value

Type: Microsoft.CommerceServer.Marketing..::.ConditionBasis
One of the ConditionBasis enumeration values. The default is Quantity.

Remarks

The value of this property determines how MinimumAmount is interpreted.

The returned ConditionBasis will be one of the following:

  • Price - A minimum purchase price must be met for the condition to be satisfied.

  • Quantity - A minimum purchase quantity must be met for the condition to be satisfied.

The MinimumAmount indicates a minimum purchase price if Basis is set to Price. The MinimumAmount indicates a minimum purchase quantity if Basis is set to Quantity.

Permissions

See Also

Reference

DiscountCondition Class

DiscountCondition Members

Microsoft.CommerceServer.Marketing Namespace