获取描述的属性的显示名称,如 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
描述的属性的显示名称。如果属性没有 DisplayNameResourceAttribute 或 DisplayNameAttribute 特性,则返回用于创建该描述器的 DomainPropertyInfo 的显示名称。
备注
如果 owner 参数在构造函数中指定了此属性描述符,则 owner 的 GetPropertyDescriptorDisplayName 方法提供说明,此说明符在 propertyDescriptor 参数传递。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。