ExtensionMethods.GetTermValue Method (IEdmModel, IEdmStructuredValue, String, String, EdmExpressionEvaluator)
Gets the IEdmValue 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 ( _
model As IEdmModel, _
context As IEdmStructuredValue, _
termName As String, _
qualifier As String, _
expressionEvaluator As EdmExpressionEvaluator _
) As IEdmValue
'Usage
Dim model As IEdmModel
Dim context As IEdmStructuredValue
Dim termName As String
Dim qualifier As String
Dim expressionEvaluator As EdmExpressionEvaluator
Dim returnValue As IEdmValue
returnValue = model.GetTermValue(context, _
termName, qualifier, expressionEvaluator)
public static IEdmValue GetTermValue(
this IEdmModel model,
IEdmStructuredValue context,
string termName,
string qualifier,
EdmExpressionEvaluator expressionEvaluator
)
[ExtensionAttribute]
public:
static IEdmValue^ GetTermValue(
IEdmModel^ model,
IEdmStructuredValue^ context,
String^ termName,
String^ qualifier,
EdmExpressionEvaluator^ expressionEvaluator
)
static member GetTermValue :
model:IEdmModel *
context:IEdmStructuredValue *
termName:string *
qualifier:string *
expressionEvaluator:EdmExpressionEvaluator -> IEdmValue
public static function GetTermValue(
model : IEdmModel,
context : IEdmStructuredValue,
termName : String,
qualifier : String,
expressionEvaluator : EdmExpressionEvaluator
) : IEdmValue
Parameters
- model
Type: Microsoft.Data.Edm.IEdmModel
Model to search for term annotations.
- context
Type: Microsoft.Data.Edm.Values.IEdmStructuredValue
Value to use as context in evaluation.
- termName
Type: System.String
Name of the term to evaluate.
- qualifier
Type: System.String
Qualifier to apply.
- expressionEvaluator
Type: Microsoft.Data.Edm.Evaluation.EdmExpressionEvaluator
Evaluator to use to perform expression evaluation.
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).