Share via


ModelElement.GetAnnotations<TType> Method

Gets a list of annotations of the provided type that are attached to the current element.

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

Syntax

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

Type Parameters

Return Value

Type: System.Collections.Generic.IList<TType>
An IList<T> that contains annotations whose Type matches the provided TType Generic parameter.

.NET Framework Security

See Also

Reference

ModelElement Class

GetAnnotations Overload

Microsoft.Data.Schema.SchemaModel Namespace

IModelAnnotation