共用方式為


ElementPropertyDescriptor.DisplayName 屬性

取得所描述屬性的顯示名稱,如 DisplayNameResourceAttribute 中所指定。

命名空間:  Microsoft.VisualStudio.Modeling.Design
組件:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

語法

'宣告
Public Overrides ReadOnly Property DisplayName As String
public override string DisplayName { get; }

屬性值

類型:System.String
描述的屬性的顯示名稱。如果屬性 (Property) 沒有 DisplayNameResourceAttributeDisplayNameAttribute 屬性 (Attribute),則會傳回用來建立此描述元的 DomainPropertyInfo 顯示名稱。

備註

如果 owner 參數在建構函式指定為這個屬性描述元,則 owner的 GetPropertyDescriptorDisplayName 方法的描述,這個描述元在 propertyDescriptor 參數中傳遞。

.NET Framework 安全性

請參閱

參考

ElementPropertyDescriptor 類別

Microsoft.VisualStudio.Modeling.Design 命名空間

ElementTypeDescriptor

DisplayNameResourceAttribute

DomainPropertyInfo