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

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.

See Also

Reference

EdmExpressionEvaluator Class

Evaluate Overload

Microsoft.Data.Edm.Evaluation Namespace