Bagikan melalui


ExtensionMethods.GetTermValue<T> Method (IEdmModel, IEdmVocabularyAnnotatable, String, String, EdmToClrEvaluator)

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

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, _
    element As IEdmVocabularyAnnotatable, _
    termName As String, _
    qualifier As String, _
    evaluator As EdmToClrEvaluator _
) As T
'Usage
Dim model As IEdmModel 
Dim element As IEdmVocabularyAnnotatable 
Dim termName As String 
Dim qualifier As String 
Dim evaluator As EdmToClrEvaluator 
Dim returnValue As T

returnValue = model.GetTermValue(element, _
    termName, qualifier, evaluator)
public static T GetTermValue<T>(
    this IEdmModel model,
    IEdmVocabularyAnnotatable element,
    string termName,
    string qualifier,
    EdmToClrEvaluator evaluator
)
[ExtensionAttribute]
public:
generic<typename T>
static T GetTermValue(
    IEdmModel^ model, 
    IEdmVocabularyAnnotatable^ element, 
    String^ termName, 
    String^ qualifier, 
    EdmToClrEvaluator^ evaluator
)
static member GetTermValue : 
        model:IEdmModel * 
        element:IEdmVocabularyAnnotatable * 
        termName:string * 
        qualifier: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

Return Value

Type: T

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).

See Also

Reference

ExtensionMethods Class

GetTermValue Overload

Microsoft.Data.Edm Namespace