Partager via


ConditionExpression Property

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

Gets or sets a reference to the expression that is evaluated against each item in the user's basket.

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

Syntax

'Declaration
Public Property ConditionExpression As ExpressionRef
'Usage
Dim instance As DiscountCondition
Dim value As ExpressionRef

value = instance.ConditionExpression

instance.ConditionExpression = value
public ExpressionRef ConditionExpression { get; set; }
public:
property ExpressionRef^ ConditionExpression {
    ExpressionRef^ get ();
    void set (ExpressionRef^ value);
}
public function get ConditionExpression () : ExpressionRef
public function set ConditionExpression (value : ExpressionRef)

Property Value

Type: Microsoft.CommerceServer.Marketing..::.ExpressionRef
An ExpressionRef object that is evaluated against each item in the user's basket.

Remarks

This expression must evaluate to true at least once for the discount to apply. The returned ExpressionRef object is used as a binding mechanism to associate the Expression objects with the CampaignItem objects.

Permissions

See Also

Reference

DiscountCondition Class

DiscountCondition Members

Microsoft.CommerceServer.Marketing Namespace