ElementTypeDescriptor.GetPropertyDescriptorDisplayName メソッド
ドメイン プロパティの表示名のローカライズされた文字列を返します。
名前空間: Microsoft.VisualStudio.Modeling.Design
アセンブリ: Microsoft.VisualStudio.Modeling.Sdk.12.0 (Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 内)
構文
'宣言
Protected Friend Overridable Function GetPropertyDescriptorDisplayName ( _
propertyDescriptor As ElementPropertyDescriptor _
) As String
protected internal virtual string GetPropertyDescriptorDisplayName(
ElementPropertyDescriptor propertyDescriptor
)
パラメーター
- propertyDescriptor
型 : Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor
表示名を取得するドメイン プロパティの記述子。
戻り値
型 : System.String
ドメイン プロパティの表示名のローカライズされた文字列。
例外
例外 | 条件 |
---|---|
ArgumentNullException | propertyDescriptor は nullnull 参照 (Visual Basic では Nothing) なので、 |
解説
ドメイン プロパティ記述子の作成時の所有者が指定されている場合、プロパティ記述子の DisplayName のプロパティは所有者の GetPropertyDescriptorDisplayName のメソッドを呼び出し、propertyDescriptor パラメーターとして指定します。 派生クラスでは、要素のプロパティの表示名を設定するための中心的な場所を指定できます。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。