Freigeben über


ModelElement.GetAnnotations<TType>-Methode (ModelIdentifier)

Ruft eine Liste mit Anmerkungen ab, die an das angegebene Element angefügt sind und deren Typ dem angegebenen Type entspricht.

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 unterstützt keine generischen Typen oder Methoden.

Typparameter

Parameter

Rückgabewert

Typ: System.Collections.Generic.IList<TType>
Eine IList<T> vom Typ TType.

.NET Framework-Sicherheit

Siehe auch

Referenz

ModelElement Klasse

GetAnnotations-Überladung

Microsoft.Data.Schema.SchemaModel-Namespace

IModelAnnotation

ModelIdentifier