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.
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
- profiles
Type: Microsoft.CommerceServer.Runtime.Targeting..::.TargetingProfileCollection
A TargetingProfileCollection, representing a set of named Profile objects to be targeted. May not be null.
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
- 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.