ElementTypeDescriptor.GetComponentName 方法

获取此种类表示的模块元素的名称。

命名空间:  Microsoft.VisualStudio.Modeling.Design
程序集:  Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

语法

声明
Public Overrides Function GetComponentName As String
public override string GetComponentName()

返回值

类型:System.String
被此类表示的模型元素的名称。如果元素没有名称,则该属性返回空字符串 ("")。

实现

ICustomTypeDescriptor.GetComponentName()

备注

上述模型元素的元数据由类型表示 DomainClassInfo对象。 元数据的 NameDomainProperty 属性指示域模型元素提供属性的组件名称。

.NET Framework 安全性

请参阅

参考

ElementTypeDescriptor 类

Microsoft.VisualStudio.Modeling.Design 命名空间

DomainClassInfo

DomainPropertyInfo

ElementNameAttribute

ElementNameProvider