Export (0) Print
Expand All
Expand Minimize

ExtensionMethods.GetTermValue<T> Method (IEdmModel, IEdmStructuredValue, IEdmValueTerm, EdmToClrEvaluator)

WCF Data Services 5.0

Gets the CLR value of a vocabulary term that has been applied to the type of a value.

Namespace:  Microsoft.Data.Edm
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

public static T GetTermValue<T>(
	this IEdmModel model,
	IEdmStructuredValue context,
	IEdmValueTerm term,
	EdmToClrEvaluator evaluator
)

Type Parameters

T

The CLR type of the value to be returned.

Parameters

model
Type: Microsoft.Data.Edm.IEdmModel
The model to search for term annotations.
context
Type: Microsoft.Data.Edm.Values.IEdmStructuredValue
The value to use as context in evaluation.
term
Type: Microsoft.Data.Edm.IEdmValueTerm
The term to evaluate.
evaluator
Type: Microsoft.Data.Edm.Evaluation.EdmToClrEvaluator
The evaluator to use to perform expression evaluation.

Return Value

Type: T
The value of the term evaluated against the supplied value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmModel. When you use instance method syntax to call this method, omit the first parameter. For more information, see http://msdn.microsoft.com/en-us/library/bb384936(v=vs.103).aspx or http://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).aspx.
Show:
© 2014 Microsoft