GetAnnotation(T) Method (IEdmAnnotatable, String, String)

[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, _
    namespaceName As String, _
    localName As String _
) As T
'Usage
Dim annotatable As IEdmAnnotatable
Dim namespaceName As String
Dim localName As String
Dim returnValue As T

returnValue = annotatable.GetAnnotation(namespaceName, _
    localName)
public static T GetAnnotation<T>(
    this IEdmAnnotatable annotatable,
    string namespaceName,
    string localName
)
where T : class
[ExtensionAttribute]
public:
generic<typename T>
where T : ref class
static T GetAnnotation(
    IEdmAnnotatable^ annotatable, 
    String^ namespaceName, 
    String^ localName
)
static member GetAnnotation : 
        annotatable:IEdmAnnotatable * 
        namespaceName:string * 
        localName:string -> '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