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.
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 EvaluateToClrValue(Of T) ( _
expression As IEdmExpression, _
context As IEdmStructuredValue, _
targetType As IEdmTypeReference _
) As T
'Usage
Dim instance As EdmToClrEvaluator
Dim expression As IEdmExpression
Dim context As IEdmStructuredValue
Dim targetType As IEdmTypeReference
Dim returnValue As T
returnValue = instance.EvaluateToClrValue(expression, _
context, targetType)
public T EvaluateToClrValue<T>(
IEdmExpression expression,
IEdmStructuredValue context,
IEdmTypeReference targetType
)
public:
generic<typename T>
T EvaluateToClrValue(
IEdmExpression^ expression,
IEdmStructuredValue^ context,
IEdmTypeReference^ targetType
)
member EvaluateToClrValue :
expression:IEdmExpression *
context:IEdmStructuredValue *
targetType:IEdmTypeReference -> 'T
JScript does not support generic types and methods.
Type Parameters
- T
The CLR type of the value to be returned.
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.
- targetType
Type: Microsoft.Data.Edm.IEdmTypeReference
Type to which the result value is expected to conform.
Return Value
Type: T