ExtensionMethods.GetPropertyValue Method (IEdmModel, IEdmStructuredValue, IEdmProperty, EdmExpressionEvaluator)
Gets the IEdmValue of a property of a term type 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 GetPropertyValue ( _
model As IEdmModel, _
context As IEdmStructuredValue, _
property As IEdmProperty, _
expressionEvaluator As EdmExpressionEvaluator _
) As IEdmValue
'Usage
Dim model As IEdmModel
Dim context As IEdmStructuredValue
Dim property As IEdmProperty
Dim expressionEvaluator As EdmExpressionEvaluator
Dim returnValue As IEdmValue
returnValue = model.GetPropertyValue(context, _
property, expressionEvaluator)
public static IEdmValue GetPropertyValue(
this IEdmModel model,
IEdmStructuredValue context,
IEdmProperty property,
EdmExpressionEvaluator expressionEvaluator
)
[ExtensionAttribute]
public:
static IEdmValue^ GetPropertyValue(
IEdmModel^ model,
IEdmStructuredValue^ context,
IEdmProperty^ property,
EdmExpressionEvaluator^ expressionEvaluator
)
static member GetPropertyValue :
model:IEdmModel *
context:IEdmStructuredValue *
property:IEdmProperty *
expressionEvaluator:EdmExpressionEvaluator -> IEdmValue
public static function GetPropertyValue(
model : IEdmModel,
context : IEdmStructuredValue,
property : IEdmProperty,
expressionEvaluator : EdmExpressionEvaluator
) : IEdmValue
Parameters
- model
Type: Microsoft.Data.Edm.IEdmModel
Model to search for type annotations.
- context
Type: Microsoft.Data.Edm.Values.IEdmStructuredValue
Value to use as context in evaluation.
- property
Type: Microsoft.Data.Edm.IEdmProperty
Property to evaluate.
- 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 property evaluated against the supplied value, or null if no relevant type annotation exists.
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).