GetAnnotation(T) Method (IEdmAnnotatable, EdmTermName)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Namespace:  Microsoft.Data.Edm
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetAnnotation(Of T As Class) ( _
    annotatable As IEdmAnnotatable, _
    name As EdmTermName _
) As T
'Usage
Dim annotatable As IEdmAnnotatable
Dim name As EdmTermName
Dim returnValue As T

returnValue = annotatable.GetAnnotation(name)
public static T GetAnnotation<T>(
    this IEdmAnnotatable annotatable,
    EdmTermName name
)
where T : class
[ExtensionAttribute]
public:
generic<typename T>
where T : ref class
static T GetAnnotation(
    IEdmAnnotatable^ annotatable, 
    EdmTermName^ name
)
static member GetAnnotation : 
        annotatable:IEdmAnnotatable * 
        name:EdmTermName -> 'T  when 'T : not struct
JScript does not support generic types and methods.

Type Parameters

  • T

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

GetAnnotation Overload

Microsoft.Data.Edm Namespace