DescriptionResourceAttribute クラス

プロパティが PropertyGrid のコントロールに表示するときに、プロパティとプロパティの説明を表します。

継承階層

System.Object
  System.Attribute
    System.ComponentModel.DescriptionAttribute
      Microsoft.VisualStudio.Modeling.Design.DescriptionResourceAttribute

名前空間:  Microsoft.VisualStudio.Modeling.Design
アセンブリ:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 内)

構文

'宣言
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Property Or AttributeTargets.Field, AllowMultiple := False)> _
Public NotInheritable Class DescriptionResourceAttribute _
    Inherits DescriptionAttribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false)]
public sealed class DescriptionResourceAttribute : DescriptionAttribute

DescriptionResourceAttribute 型で公開されるメンバーは以下のとおりです。

コンストラクター

  名前 説明
パブリック メソッド DescriptionResourceAttribute(String, Type) 指定のキーと型説明を使用して DescriptionResourceAttribute クラスの新しいインスタンスを初期化します。
パブリック メソッド DescriptionResourceAttribute(String, Type, String) 指定のキーついて、型およびリソースの名前を使用して DescriptionResourceAttribute クラスの新しいインスタンスを初期化します。

このページのトップへ

プロパティ

  名前 説明
パブリック プロパティ Description 現在のカルチャにローカライズされた説明を取得します。 (DescriptionAttribute.Description をオーバーライドします。)
パブリック プロパティ DescriptionKey 指定したリソースについてリソース エントリのキーを取得します。
パブリック プロパティ ResourceName リソースのルート名を取得します。
パブリック プロパティ Type リソースを含むアセンブリを識別する型を取得します。
パブリック プロパティ TypeId 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。 (Attribute から継承されます。)

このページのトップへ

メソッド

  名前 説明
パブリック メソッド Equals 指定したオブジェクトの値が現在の DescriptionAttribute と等しいかどうかを示す値を返します。 (DescriptionAttribute から継承されます。)
パブリック メソッド GetHashCode 対象のインスタンスのハッシュ コードを返します。 (DescriptionAttribute から継承されます。)
パブリック メソッド GetType 現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッド IsDefaultAttribute これが既定の DescriptionAttribute インスタンスであるかどうかを示す値を返します。 (DescriptionAttribute から継承されます。)
パブリック メソッド Match 派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 (Attribute から継承されます。)
パブリック メソッド ToString 現在のオブジェクトを表す文字列を返します。 (Object から継承されます。)

このページのトップへ

明示的インターフェイスの実装

  名前 説明
明示的なインターフェイス実装プライベート メソッド _Attribute.GetIDsOfNames 一連の名前を対応する一連のディスパッチ識別子に割り当てます。 (Attribute から継承されます。)
明示的なインターフェイス実装プライベート メソッド _Attribute.GetTypeInfo オブジェクトの型情報を取得します。この情報はインターフェイスの型情報の取得に使用できます。 (Attribute から継承されます。)
明示的なインターフェイス実装プライベート メソッド _Attribute.GetTypeInfoCount オブジェクトが提供する型情報インターフェイスの数 (0 または 1) を取得します。 (Attribute から継承されます。)
明示的なインターフェイス実装プライベート メソッド _Attribute.Invoke オブジェクトによって公開されたプロパティおよびメソッドへのアクセスを提供します。 (Attribute から継承されます。)

このページのトップへ

解説

このクラスの Description のプロパティは、現在のカルチャにローカライズされた説明文字列リソースを取得します。ローカライズされた文字列が使用できない場合、Description のプロパティは DescriptionKey のプロパティの値を返します。

ドメイン固有言語をデザインすると (DSL)、生成されたコードは、DSL 定義のドメインのプロパティに対応するプロパティにこの属性を適用します。

スレッド セーフ

この型のすべてのパブリック static (Visual Basic では Shared) メンバーは、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

参照

関連項目

Microsoft.VisualStudio.Modeling.Design 名前空間

CategoryResourceAttribute

DisplayNameResourceAttribute

DescriptionAttribute

ResourceManager