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()
備註
所述的模型項目的中繼資料由型別的物件DomainClassInfo。NameDomainProperty的中繼資料屬性會指出哪一個網域屬性提供的模型項目的元件名稱。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。