ExtensionMethods.GetTermValue<T> Method (IEdmModel, IEdmStructuredValue, String, EdmToClrEvaluator)
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)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetTermValue(Of T) ( _
model As IEdmModel, _
context As IEdmStructuredValue, _
termName As String, _
evaluator As EdmToClrEvaluator _
) As T
'Usage
Dim model As IEdmModel
Dim context As IEdmStructuredValue
Dim termName As String
Dim evaluator As EdmToClrEvaluator
Dim returnValue As T
returnValue = model.GetTermValue(context, _
termName, evaluator)
public static T GetTermValue<T>(
this IEdmModel model,
IEdmStructuredValue context,
string termName,
EdmToClrEvaluator evaluator
)
[ExtensionAttribute]
public:
generic<typename T>
static T GetTermValue(
IEdmModel^ model,
IEdmStructuredValue^ context,
String^ termName,
EdmToClrEvaluator^ evaluator
)
static member GetTermValue :
model:IEdmModel *
context:IEdmStructuredValue *
termName:string *
evaluator:EdmToClrEvaluator -> 'T
JScript does not support generic types and methods.
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.
- termName
Type: System.String
The name of 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 https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).