取得所提供之型別的附註清單,而這些附註已附加至目前項目。
命名空間: 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 不支援泛型型別或方法。
型別參數
- TType
繼承自 IModelAnnotation 的 Type。
傳回值
型別:System.Collections.Generic.IList<TType>
包含附註的 IList<T>,這些附註的型別符合提供的 TType 泛型參數。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。