EdmExpressionEvaluator.Evaluate Method (IEdmExpression, IEdmStructuredValue, IEdmTypeReference)
Evaluates an expression in the context of a value and a target type.
Namespace: Microsoft.Data.Edm.Evaluation
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
Public Function Evaluate ( _
expression As IEdmExpression, _
context As IEdmStructuredValue, _
targetType As IEdmTypeReference _
) As IEdmValue
'Usage
Dim instance As EdmExpressionEvaluator
Dim expression As IEdmExpression
Dim context As IEdmStructuredValue
Dim targetType As IEdmTypeReference
Dim returnValue As IEdmValue
returnValue = instance.Evaluate(expression, _
context, targetType)
public IEdmValue Evaluate(
IEdmExpression expression,
IEdmStructuredValue context,
IEdmTypeReference targetType
)
public:
IEdmValue^ Evaluate(
IEdmExpression^ expression,
IEdmStructuredValue^ context,
IEdmTypeReference^ targetType
)
member Evaluate :
expression:IEdmExpression *
context:IEdmStructuredValue *
targetType:IEdmTypeReference -> IEdmValue
public function Evaluate(
expression : IEdmExpression,
context : IEdmStructuredValue,
targetType : IEdmTypeReference
) : IEdmValue
Parameters
- expression
Type: Microsoft.Data.Edm.Expressions.IEdmExpression
Expression to evaluate.
- context
Type: Microsoft.Data.Edm.Values.IEdmStructuredValue
Value to use as context in evaluating the expression. Cannot be null if the expression contains paths.
- targetType
Type: Microsoft.Data.Edm.IEdmTypeReference
Type to which the result value is expected to conform.
Return Value
Type: Microsoft.Data.Edm.Values.IEdmValue
The value that results from evaluating the expression in the context of the supplied value, asserted to be of the target type.