Share via


EdmExpressionEvaluator.Evaluate Method

Definition

Overloads

Evaluate(IEdmExpression)

Evaluates an expression with no value context.

Evaluate(IEdmExpression, IEdmStructuredValue)

Evaluates an expression in the context of a value.

Evaluate(IEdmExpression, IEdmStructuredValue, IEdmTypeReference)

Evaluates an expression in the context of a value and a target type.

Evaluate(IEdmExpression)

Evaluates an expression with no value context.

public Microsoft.OData.Edm.Vocabularies.IEdmValue Evaluate (Microsoft.OData.Edm.IEdmExpression expression);
member this.Evaluate : Microsoft.OData.Edm.IEdmExpression -> Microsoft.OData.Edm.Vocabularies.IEdmValue
Public Function Evaluate (expression As IEdmExpression) As IEdmValue

Parameters

expression
IEdmExpression

Expression to evaluate. The expression must not contain paths, because no context for evaluating a path is supplied.

Returns

The value that results from evaluating the expression in the context of the supplied value.

Applies to

Evaluate(IEdmExpression, IEdmStructuredValue)

Evaluates an expression in the context of a value.

public Microsoft.OData.Edm.Vocabularies.IEdmValue Evaluate (Microsoft.OData.Edm.IEdmExpression expression, Microsoft.OData.Edm.Vocabularies.IEdmStructuredValue context);
member this.Evaluate : Microsoft.OData.Edm.IEdmExpression * Microsoft.OData.Edm.Vocabularies.IEdmStructuredValue -> Microsoft.OData.Edm.Vocabularies.IEdmValue
Public Function Evaluate (expression As IEdmExpression, context As IEdmStructuredValue) As IEdmValue

Parameters

expression
IEdmExpression

Expression to evaluate.

context
IEdmStructuredValue

Value to use as context in evaluating the expression. Cannot be null if the expression contains paths.

Returns

The value that results from evaluating the expression in the context of the supplied value.

Applies to

Evaluate(IEdmExpression, IEdmStructuredValue, IEdmTypeReference)

Evaluates an expression in the context of a value and a target type.

public Microsoft.OData.Edm.Vocabularies.IEdmValue Evaluate (Microsoft.OData.Edm.IEdmExpression expression, Microsoft.OData.Edm.Vocabularies.IEdmStructuredValue context, Microsoft.OData.Edm.IEdmTypeReference targetType);
member this.Evaluate : Microsoft.OData.Edm.IEdmExpression * Microsoft.OData.Edm.Vocabularies.IEdmStructuredValue * Microsoft.OData.Edm.IEdmTypeReference -> Microsoft.OData.Edm.Vocabularies.IEdmValue
Public Function Evaluate (expression As IEdmExpression, context As IEdmStructuredValue, targetType As IEdmTypeReference) As IEdmValue

Parameters

expression
IEdmExpression

Expression to evaluate.

context
IEdmStructuredValue

Value to use as context in evaluating the expression. Cannot be null if the expression contains paths.

targetType
IEdmTypeReference

Type to which the result value is expected to conform.

Returns

The value that results from evaluating the expression in the context of the supplied value, asserted to be of the target type.

Applies to