共用方式為


PresentationElementTypeDescriptionProvider 類別

注意:這個應用程式開發介面現在已經過時。

PresentationElementTypeDescriptionProvider 提供會封裝 ModelElement 物件的包裝函式類別。 當屬性方格想要呈現 ModelElement 物件時,就會叫用這個類別。

繼承階層架構

System.Object
  System.ComponentModel.TypeDescriptionProvider
    Microsoft.VisualStudio.Modeling.Design.ElementTypeDescriptionProvider
      Microsoft.VisualStudio.Modeling.Diagrams.PresentationElementTypeDescriptionProvider

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

語法

'宣告
<ObsoleteAttribute("This class is redundant and may be removed in a later version. Derive from ElementTypeDescriptor instead.",  _
    True)> _
Public Class PresentationElementTypeDescriptionProvider _
    Inherits ElementTypeDescriptionProvider
[ObsoleteAttribute("This class is redundant and may be removed in a later version. Derive from ElementTypeDescriptor instead.", 
    true)]
public class PresentationElementTypeDescriptionProvider : ElementTypeDescriptionProvider

PresentationElementTypeDescriptionProvider 類型會公開下列成員。

建構函式

  名稱 描述
公用方法 PresentationElementTypeDescriptionProvider

回頁首

方法

  名稱 描述
受保護的方法 CreateCustomTypeDescriptor(ICustomTypeDescriptor, ModelElement) Overridable,讓衍生類別提供 ICustomTypeDescriptor (不需要是 ElementTypeDescriptor)。基底實作只是呼叫 CreateTypeDescriptor() 來建立 ElementTypeDescriptor。 (繼承自 ElementTypeDescriptionProvider)。
受保護的方法 CreateCustomTypeDescriptor(ICustomTypeDescriptor, Type) Overridable,讓衍生類別提供 ICustomTypeDescriptor (不需要是 ElementTypeDescriptor)。基底實作只是呼叫 CreateTypeDescriptor() 來建立 ElementTypeDescriptor。 (繼承自 ElementTypeDescriptionProvider)。
公用方法 CreateInstance 建立可以取代另一個資料型別的物件。 (繼承自 TypeDescriptionProvider)。
受保護的方法 CreatePresentationElementTypeDescriptor 建立要轉譯屬性之屬性方格的新 PresentationElementTypeDescriptor。衍生自 PresentationElementTypeDescriptionProvider 的類別可以覆寫這個方法以提供其本身的型別描述元。
受保護的方法 CreateTypeDescriptor(ICustomTypeDescriptor, Type) Overridable,讓衍生類別提供自訂的型別描述元。 (繼承自 ElementTypeDescriptionProvider)。
受保護的方法 CreateTypeDescriptor(ICustomTypeDescriptor, ModelElement) 提供 PresentationElement 的自訂型別描述元。 (覆寫 ElementTypeDescriptionProvider.CreateTypeDescriptor(ICustomTypeDescriptor, ModelElement)。)
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。
公用方法 GetCache 取得個別物件的快取,以索引鍵/值組的 IDictionary 方式存取。 (繼承自 TypeDescriptionProvider)。
公用方法 GetExtendedTypeDescriptor 取得特定物件的擴充自訂型別描述項。 (繼承自 TypeDescriptionProvider)。
受保護的方法 GetExtenderProviders 取得指定之物件的擴充項提供者。 (繼承自 TypeDescriptionProvider)。
公用方法 GetFullComponentName 取得指定之元件的名稱,或 nullnull 參考 (即 Visual Basic 中的 Nothing) (如果元件沒有名稱)。 (繼承自 TypeDescriptionProvider)。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetReflectionType(Type) 對型別執行一般反映。 (繼承自 TypeDescriptionProvider)。
公用方法 GetReflectionType(Object) 對指定的物件執行一般反映。 (繼承自 TypeDescriptionProvider)。
公用方法 GetReflectionType(Type, Object) 對具有特定型別的特定物件執行一般反映。 (繼承自 TypeDescriptionProvider)。
公用方法 GetRuntimeType 將反映型別轉換成執行階段型別。 (繼承自 TypeDescriptionProvider)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 GetTypeDescriptor(Type) 取得特定型別的自訂型別描述項。 (繼承自 TypeDescriptionProvider)。
公用方法 GetTypeDescriptor(Object) 取得特定物件的自訂型別描述項。 (繼承自 TypeDescriptionProvider)。
公用方法 GetTypeDescriptor(Type, Object) 取得特定型別和物件的自訂型別描述項。 (繼承自 ElementTypeDescriptionProvider)。
公用方法 IsSupportedType 取得值,這個值指出指定的型別是否與型別描述及其型別描述提供者的鏈結相容。 (繼承自 TypeDescriptionProvider)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.Modeling.Diagrams 命名空間