ModelElement.GetAnnotations<TType> 方法 (ModelIdentifier)
取得附註的清單,這些附註已附加至指定的項目,且其型別符合提供的 Type。
命名空間: Microsoft.Data.Schema.SchemaModel
組件: Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)
語法
'宣告
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 不支援泛型型別或方法。
型別參數
- TType
繼承自 IModelAnnotation 的 Type。
參數
- identifier
型別:Microsoft.Data.Schema.SchemaModel.ModelIdentifier
用來識別項目的 ModelIdentifier 物件。
傳回值
型別:System.Collections.Generic.IList<TType>
型別為 TType 的 IList<T>。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。