Action Property

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

Gets or sets an Action that will be taken if expression evaluates to true.

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

Syntax

'Declaration
Public Property Action As TargetAction
'Usage
Dim instance As ExpressionTarget
Dim value As TargetAction

value = instance.Action

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

Property Value

Type: Microsoft.CommerceServer.Marketing..::.TargetAction
A TargetAction enumeration value specifying the action of an ExpressionTarget.

Remarks

The TargetAction enumeration values (the actions to be taken if the Expression evaluates to true) are:

  • Exclude - If the expression evaluates to "True," the content is not eligible for delivery. If the expresses ion evaluates to "False," the content is eligible for delivery.

  • Require - If the expression evaluates to "True," the content is eligible for delivery. If the expresses ion evaluates to "False," the content is not eligible for delivery.

  • Sponsorship - If the expression evaluates to "True," the content is eligible for delivery and no other content is eligible unless it too has an expression with action = Sponsor. (Sponsor has only one multiplier.)

  • Target - If the expression evaluates to "True," the score is increased, as is the probability that the content will be shown. If the expression evaluates to "False," the score is not changed. In both scenarios, the content is eligible for delivery.

Permissions

See Also

Reference

ExpressionTarget Class

ExpressionTarget Members

Microsoft.CommerceServer.Marketing Namespace