Share via


ExpressionEvaluator.EvaluateInContext (Int32, Object) Method (BCL)

Use the following method to evaluate the expression specified by the parameter and the profiles contained in the EvaluationContextHandle object.

Definition

[Visual Basic .NET]

Public Function EvaluateInContext( _ByValexpressionID As System.Int32, _
  ByValevaluationContextHandle As System.Object _
) As ExpressionEvaluator.ExpressionResult

[C#]

public ExpressionEvaluator.ExpressionResult EvaluateInContext(System.Int32expressionID,
  System.ObjectevaluationContextHandle);

Parameters

[Visual Basic .NET]

  • expressionID
    ExpressionID of the expression to be evaluated. Must be greater than 0.
  • evaluationContextHandle
    An EvaluationContext object created by the CreateEvaluationContextHandle method.

[C#]

  • expressionID
    An expression ID of the expression to be evaluated. Must be greater than 0.
  • evaluationContextHandle
    An EvaluationContext object created by the CreateEvaluationContextHandle method.

Return Value

An ExpressionResult enumerator.

Remarks

Throws ArgumentNullException if the evaluationContextHandle parameter was passed as null.

Throws ArgumentOutOfRangeException if the expressionID parameter is less than one.

Throws CommerceTargetingException for all other failures.

Requirements

Namespace: Microsoft.CommerceServer.Runtime.Targeting

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

Copyright © 2005 Microsoft Corporation.
All rights reserved.