次の方法で共有


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>
指定した TType のジェネリック パラメーターに型が一致する注釈を格納している IList<T>

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

ModelElement クラス

GetAnnotations オーバーロード

Microsoft.Data.Schema.SchemaModel 名前空間

IModelAnnotation