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) 沒有 DisplayNameResourceAttribute 或 DisplayNameAttribute 屬性 (Attribute),則會傳回用來建立此描述元的 DomainPropertyInfo 顯示名稱。
備註
如果 owner 參數在建構函式指定為這個屬性描述元,則 owner的 GetPropertyDescriptorDisplayName 方法的描述,這個描述元在 propertyDescriptor 參數中傳遞。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。