Share via


ExtensionMethods.GetTermValue Method (IEdmModel, IEdmVocabularyAnnotatable, String, EdmExpressionEvaluator)

Gets the IEdmValue 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 ( _
    model As IEdmModel, _
    element As IEdmVocabularyAnnotatable, _
    termName As String, _
    expressionEvaluator As EdmExpressionEvaluator _
) As IEdmValue
'Usage
Dim model As IEdmModel 
Dim element As IEdmVocabularyAnnotatable 
Dim termName As String 
Dim expressionEvaluator As EdmExpressionEvaluator 
Dim returnValue As IEdmValue 

returnValue = model.GetTermValue(element, _
    termName, expressionEvaluator)
public static IEdmValue GetTermValue(
    this IEdmModel model,
    IEdmVocabularyAnnotatable element,
    string termName,
    EdmExpressionEvaluator expressionEvaluator
)
[ExtensionAttribute]
public:
static IEdmValue^ GetTermValue(
    IEdmModel^ model, 
    IEdmVocabularyAnnotatable^ element, 
    String^ termName, 
    EdmExpressionEvaluator^ expressionEvaluator
)
static member GetTermValue : 
        model:IEdmModel * 
        element:IEdmVocabularyAnnotatable * 
        termName:string * 
        expressionEvaluator:EdmExpressionEvaluator -> IEdmValue
public static function GetTermValue(
    model : IEdmModel, 
    element : IEdmVocabularyAnnotatable, 
    termName : String, 
    expressionEvaluator : EdmExpressionEvaluator
) : IEdmValue

Parameters

Return Value

Type: Microsoft.Data.Edm.Values.IEdmValue
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).

See Also

Reference

ExtensionMethods Class

GetTermValue Overload

Microsoft.Data.Edm Namespace