Método ModelElement.GetAnnotations<TType>

Obtém uma lista de anotações do tipo fornecido que estão anexados ao elemento atual.

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

Sintaxe

'Declaração
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
O JScript não oferece suporte a tipos ou métodos genéricos.

Parâmetros de tipo

Valor de retorno

Tipo: System.Collections.Generic.IList<TType>
Um IList<T> que contém as anotações cujo tipo corresponde a fornecido TType parâmetro genérico.

Segurança do .NET Framework

Consulte também

Referência

ModelElement Classe

Sobrecargas GetAnnotations

Namespace Microsoft.Data.Schema.SchemaModel

IModelAnnotation