Compartir vía


CreateEvaluationContextHandle Method

Creates an EvaluationContext object for evaluating multiple expressions against the same set of profiles.

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

Syntax

'Declaration
Public Function CreateEvaluationContextHandle ( _
    profiles As TargetingProfileCollection _
) As Object
'Usage
Dim instance As ExpressionEvaluator
Dim profiles As TargetingProfileCollection
Dim returnValue As Object

returnValue = instance.CreateEvaluationContextHandle(profiles)
public Object CreateEvaluationContextHandle(
    TargetingProfileCollection profiles
)
public:
Object^ CreateEvaluationContextHandle(
    TargetingProfileCollection^ profiles
)
public function CreateEvaluationContextHandle(
    profiles : TargetingProfileCollection
) : Object

Parameters

Return Value

Type: System..::.Object
CreateEvaluationContextHandle object for use with the EvaluateInContext method.

Exceptions

Exception Condition
ArgumentNullException

The profiles argument was passed as nullNothingnullptra null reference (Nothing in Visual Basic).

CommerceTargetingException

All other failures.

Remarks

Creates an EvaluationContext object for evaluating multiple expressions against the same set of profiles.

Permissions

See Also

Reference

ExpressionEvaluator Class

ExpressionEvaluator Members

Microsoft.CommerceServer.Runtime.Targeting Namespace