Compartir vía


Evaluate Method

Evaluates the expression specified by the specified expression and using the provided profiles.

Namespace:  Microsoft.CommerceServer.Runtime.Targeting
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Function Evaluate ( _
    expressionID As Integer, _
    profiles As TargetingProfileCollection _
) As ExpressionEvaluator..::.ExpressionResult
'Usage
Dim instance As ExpressionEvaluator
Dim expressionID As Integer
Dim profiles As TargetingProfileCollection
Dim returnValue As ExpressionEvaluator..::.ExpressionResult

returnValue = instance.Evaluate(expressionID, _
    profiles)
public ExpressionEvaluator..::.ExpressionResult Evaluate(
    int expressionID,
    TargetingProfileCollection profiles
)
public:
ExpressionEvaluator..::.ExpressionResult Evaluate(
    int expressionID, 
    TargetingProfileCollection^ profiles
)
public function Evaluate(
    expressionID : int, 
    profiles : TargetingProfileCollection
) : ExpressionEvaluator..::.ExpressionResult

Parameters

  • expressionID
    Type: System..::.Int32
    The identifier of the Expression to be evaluated. Must be greater than 0.

Return Value

Type: Microsoft.CommerceServer.Runtime.Targeting..::.ExpressionEvaluator..::.ExpressionResult
ExpressionResult enumerator

Remarks

Exceptions:

ArgumentNullException

profiles is nullNothingnullptra null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

The expressionID argument is less than one.

CommerceTargetingException

All other failures.

Permissions

See Also

Reference

ExpressionEvaluator Class

ExpressionEvaluator Members

Microsoft.CommerceServer.Runtime.Targeting Namespace