CustomTypeDescriptor 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供 ICustomTypeDescriptor 介面的簡單預設實作。
public ref class CustomTypeDescriptor abstract : System::ComponentModel::ICustomTypeDescriptor
public abstract class CustomTypeDescriptor : System.ComponentModel.ICustomTypeDescriptor
type CustomTypeDescriptor = class
interface ICustomTypeDescriptor
Public MustInherit Class CustomTypeDescriptor
Implements ICustomTypeDescriptor
- 繼承
-
CustomTypeDescriptor
- 衍生
- 實作
備註
如同 TypeDescriptionProvider,類別 CustomTypeDescriptor 依賴建構期間所提供的型 ICustomTypeDescriptor 別父物件。 這可讓衍生自 CustomTypeDescriptor 的類別選擇性地覆寫方法。
建構函式
CustomTypeDescriptor() |
初始化 CustomTypeDescriptor 類別的新執行個體。 |
CustomTypeDescriptor(ICustomTypeDescriptor) |
使用父自訂型別描述項,初始化 CustomTypeDescriptor 類別的新執行個體。 |
方法
Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
GetAttributes() |
傳回這個型別描述項所表示之型別的自訂屬性集合。 |
GetClassName() |
傳回此類型描述元所代表之類別的完整格式名稱。 |
GetComponentName() |
傳回這個型別描述項所表示之類別的名稱。 |
GetConverter() |
傳回這個型別描述項所表示之類別的型別轉換子。 |
GetDefaultEvent() |
傳回這個型別描述項所表示之物件的預設事件描述項。 |
GetDefaultProperty() |
傳回這個型別描述項所表示之物件的預設屬性描述項。 |
GetEditor(Type) |
傳回指定型別的編輯器,這個指定型別與這個型別描述項所表示的類別關聯。 |
GetEvents() |
傳回這個型別描述項所表示之物件的事件描述項集合。 |
GetEvents(Attribute[]) |
傳回這個型別描述項所表示之物件的已篩選事件描述項集合。 |
GetHashCode() |
做為預設雜湊函式。 (繼承來源 Object) |
GetProperties() |
傳回這個型別描述項所表示之物件的屬性描述項集合。 |
GetProperties(Attribute[]) |
傳回這個型別描述項所表示之物件的已篩選屬性描述項集合。 |
GetPropertyOwner(PropertyDescriptor) |
傳回物件,包含指定的屬性描述項所描述的屬性。 |
GetType() |
取得目前執行個體的 Type。 (繼承來源 Object) |
MemberwiseClone() |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
ToString() |
傳回代表目前物件的字串。 (繼承來源 Object) |
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應