Share via


ExtensionMethods.GetPropertyValue<T> Method (IEdmModel, IEdmStructuredValue, IEdmProperty, EdmToClrEvaluator)

Gets the CLR value 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(Of T) ( _
    model As IEdmModel, _
    context As IEdmStructuredValue, _
    property As IEdmProperty, _
    evaluator As EdmToClrEvaluator _
) As T
'Usage
Dim model As IEdmModel 
Dim context As IEdmStructuredValue 
Dim property As IEdmProperty 
Dim evaluator As EdmToClrEvaluator 
Dim returnValue As T

returnValue = model.GetPropertyValue(context, _
    property, evaluator)
public static T GetPropertyValue<T>(
    this IEdmModel model,
    IEdmStructuredValue context,
    IEdmProperty property,
    EdmToClrEvaluator evaluator
)
[ExtensionAttribute]
public:
generic<typename T>
static T GetPropertyValue(
    IEdmModel^ model, 
    IEdmStructuredValue^ context, 
    IEdmProperty^ property, 
    EdmToClrEvaluator^ evaluator
)
static member GetPropertyValue : 
        model:IEdmModel * 
        context:IEdmStructuredValue * 
        property:IEdmProperty * 
        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
The value of a property.

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

GetPropertyValue Overload

Microsoft.Data.Edm Namespace