TypeDescriptionProviderAttribute クラス
アセンブリ: System (system.dll 内)
構文
<AttributeUsageAttribute(AttributeTargets.Class, Inherited:=True)> _ Public NotInheritable Class TypeDescriptionProviderAttribute Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class, Inherited=true)] public sealed class TypeDescriptionProviderAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, Inherited=true)] public ref class TypeDescriptionProviderAttribute sealed : public Attribute
この属性は、開発者が作成したクラスのカスタム メタデータを提供する方法を提供します。この機能は、既定ではコンパイルしたクラスのメタデータから型情報のみを直接取得する TypeDescriptor クラスの静的な型情報の機能を拡張します。
メモ |
---|
作成したクラスのカスタム メタデータをさらに動的に提供する方法については、AddProvider メソッドのトピックを参照してください。 |
TypeDescriptionProviderAttribute を使用してクラスにタグを付けると、TypeDescriptionProvider がそのクラスに関連付けられます。TypeDescriptionProvider は、タグ付きクラスに関する補足のメタデータ情報を提供します。たとえば、GetTypeDescriptor メソッドは、属性、イベント、プロパティなどの追加の型情報を定義する ICustomTypeDescriptor を返します。以後、タグ付きクラスの調査に TypeDescriptionProvider メンバが使用されると、既定の型情報とカスタムの型情報の両方が探索されます。
System.Attribute
System.ComponentModel.TypeDescriptionProviderAttribute
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- TypeDescriptionProviderAttribute クラスのページへのリンク