ElementTypeDescriptor 類別
提供其他的執行階段型別資訊ModelElement物件。
繼承階層架構
System.Object
System.ComponentModel.CustomTypeDescriptor
Microsoft.VisualStudio.Modeling.Design.ElementTypeDescriptor
Microsoft.VisualStudio.Modeling.Diagrams.PresentationElementTypeDescriptor
Microsoft.VisualStudio.Modeling.DslDefinition.ConnectorHasDecoratorsTypeDescriptor
Microsoft.VisualStudio.Modeling.DslDefinition.Design.DslDefinitionModelElementTypeDescriptor
Microsoft.VisualStudio.Modeling.DslDefinition.ExplorerBehaviorTypeDescriptor
Microsoft.VisualStudio.Modeling.DslDefinition.ShapeHasDecoratorsTypeDescriptor
Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationBehaviorTypeDescriptor
命名空間: Microsoft.VisualStudio.Modeling.Design
組件: Microsoft.VisualStudio.Modeling.Sdk.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)
語法
'宣告
Public Class ElementTypeDescriptor _
Inherits CustomTypeDescriptor
public class ElementTypeDescriptor : CustomTypeDescriptor
ElementTypeDescriptor 型別會公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
![]() |
ElementTypeDescriptor(Type) | ctor 建立包裝函式類別,它代表要使用的 MEL 型別 |
![]() |
ElementTypeDescriptor(ModelElement) | 初始化 ElementTypeDescriptor 類別的新執行個體。 |
![]() |
ElementTypeDescriptor(ICustomTypeDescriptor, ModelElement) | 初始化新的執行個體的ElementTypeDescriptor類別,藉由使用父自訂型別描述項。 |
![]() |
ElementTypeDescriptor(ICustomTypeDescriptor, Type) | ctor 建立包裝函式類別,它代表要使用的 MEL 型別 |
回頁首
屬性
名稱 | 說明 | |
---|---|---|
![]() |
ComponentType | 取得Type的這個類別代表該模型元素。 |
![]() |
ModelElement | 取得這個類別代表該模型元素。 |
![]() |
Store |
回頁首
方法
回頁首
備註
這個類別會提供動態自訂型別資訊模型項目。
定義域專屬語言工具 (DSL 工具) 會使用這個型別來代表網域模型中的模型項目。這類控制的項目由網域模型中的屬性方格的方式,並提供所述的項目所使用的方法。
若要建立自訂的項目型別描述項,繼承自這個類別並覆寫一或多個成員。
![]() |
---|
如果您的 DSL 定義指定網域的類別中,網域型別描述項,那麼產生的程式碼的定義會包含型別描述項,衍生自ElementTypeDescriptor,專為該網域的類別。如需詳細資訊,請參閱 顯示相關項目的屬性 - 重新導向。 |
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。
請參閱
參考
Microsoft.VisualStudio.Modeling.Design 命名空間