共用方式為


ElementTypeDescriptor.GetComponentName 方法

取得由這個類別表示模型項目的名稱。

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

語法

'宣告
Public Overrides Function GetComponentName As String
public override string GetComponentName()

傳回值

型別:System.String
由這個類別表示模型項目的名稱。如果項目沒有名稱,這個屬性會傳回空字串 ("")。

實作

ICustomTypeDescriptor.GetComponentName()

備註

所述的模型項目的中繼資料由型別的物件DomainClassInfoNameDomainProperty的中繼資料屬性會指出哪一個網域屬性提供的模型項目的元件名稱。

.NET Framework 安全性

請參閱

參考

ElementTypeDescriptor 類別

Microsoft.VisualStudio.Modeling.Design 命名空間

DomainClassInfo

DomainPropertyInfo

ElementNameAttribute

ElementNameProvider