Share via


ModelElement.GetAnnotations<TType> Method (ModelIdentifier)

Gets a list of annotations that are attached to the specified element and whose type matches the provided Type.

Namespace:  Microsoft.Data.Schema.SchemaModel
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Function GetAnnotations(Of TType As {Class, IModelAnnotation}) ( _
    identifier As ModelIdentifier _
) As IList(Of TType)
public IList<TType> GetAnnotations<TType>(
    ModelIdentifier identifier
)
where TType : class, IModelAnnotation
public:
generic<typename TType>
where TType : ref class, IModelAnnotation
virtual IList<TType>^ GetAnnotations(
    ModelIdentifier^ identifier
) sealed
abstract GetAnnotations : 
        identifier:ModelIdentifier -> IList<'TType>  when 'TType : not struct and IModelAnnotation
override GetAnnotations : 
        identifier:ModelIdentifier -> IList<'TType>  when 'TType : not struct and IModelAnnotation
JScript does not support generic types or methods.

Type Parameters

Parameters

Return Value

Type: System.Collections.Generic.IList<TType>
An IList<T> of type TType.

.NET Framework Security

See Also

Reference

ModelElement Class

GetAnnotations Overload

Microsoft.Data.Schema.SchemaModel Namespace

IModelAnnotation

ModelIdentifier