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.
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.
- profiles
Type: Microsoft.CommerceServer.Runtime.Targeting..::.TargetingProfileCollection
A TargetingProfileCollection, representing a set of named Profile objects to be targeted. May not be nullNothingnullptra null reference (Nothing in Visual Basic).
Return Value
Type: Microsoft.CommerceServer.Runtime.Targeting..::.ExpressionEvaluator..::.ExpressionResult
ExpressionResult enumerator
Remarks
Exceptions:
profiles is nullNothingnullptra null reference (Nothing in Visual Basic). |
|
The expressionID argument is less than one. |
|
All other failures. |
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.