プロパティが 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) メンバーは、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。
.gif)
.gif)
.gif)
.gif)