Share via


IModelAnnotationHolder.GetAnnotations<TType> Method

Returns all attached model annotations that implement the given annotation type and have the specified model identifier.

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

Syntax

'Declaration
Function GetAnnotations(Of TType As {Class, IModelAnnotation}) As IList(Of TType)
IList<TType> GetAnnotations<TType>()
where TType : class, IModelAnnotation
generic<typename TType>
where TType : ref class, IModelAnnotation
IList<TType>^ GetAnnotations()
abstract 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>
A list containing the selected model annotations.

.NET Framework Security

See Also

Reference

IModelAnnotationHolder Interface

GetAnnotations Overload

Microsoft.Data.Schema.SchemaModel Namespace

IModelAnnotation