共用方式為


ModelElement.GetAnnotations<TType> 方法

取得所提供之型別的附註清單,而這些附註已附加至目前項目。

命名空間:  Microsoft.Data.Schema.SchemaModel
組件:  Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)

語法

'宣告
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 不支援泛型型別或方法。

型別參數

傳回值

型別:System.Collections.Generic.IList<TType>
包含附註的 IList<T>,這些附註的型別符合提供的 TType 泛型參數。

.NET Framework 安全性

請參閱

參考

ModelElement 類別

GetAnnotations 多載

Microsoft.Data.Schema.SchemaModel 命名空間

IModelAnnotation