次の方法で共有


AttributeTable.AttributedTypes プロパティ

更新 : 2007 年 11 月

プロパティや型そのものなど、なんらかの属性のオーバーライドがあるすべての型の列挙体を取得します。

名前空間 :  Microsoft.Windows.Design.Metadata
アセンブリ :  Microsoft.Windows.Design (Microsoft.Windows.Design.dll 内)

構文

'宣言
Public ReadOnly Property AttributedTypes As IEnumerable(Of Type)
'使用
Dim instance As AttributeTable
Dim value As IEnumerable(Of Type)

value = instance.AttributedTypes
public IEnumerable<Type> AttributedTypes { get; }
public:
property IEnumerable<Type^>^ AttributedTypes {
    IEnumerable<Type^>^ get ();
}
public function get AttributedTypes () : IEnumerable<Type>

プロパティ値

型 : System.Collections.Generic.IEnumerable<Type>

属性のオーバーライドがある型の列挙体。

解説

AttributedTypes を使用すると、この属性テーブルがメタデータ ストアに追加されたときに更新される型を判断できます。

カスタム属性がある型を取得する方法を次のコード例に示します。このコード例は、AttributeTable クラスのトピックで取り上げているコード例の一部分です。

Dim types As IEnumerable(Of Type) = attributes.AttributedTypes
IEnumerable<Type> types = attributes.AttributedTypes;

アクセス許可

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

参照

参照

AttributeTable クラス

AttributeTable メンバ

Microsoft.Windows.Design.Metadata 名前空間

AttributeTableBuilder

その他の技術情報

メタデータ ストア