語言

CustomTypeDescriptor 類別

定義

提供介面的簡單預設實作 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 的類別選擇性地覆寫方法。

建構函式

名稱 Description
CustomTypeDescriptor()

初始化 CustomTypeDescriptor 類別的新執行個體。

CustomTypeDescriptor(ICustomTypeDescriptor)

使用父自訂型別描述符初始化該類別的新實例 CustomTypeDescriptor 。

屬性

名稱 Description
RequireRegisteredTypes

獲得一個值,指示是否需要透過 註冊 RegisterType<T>()型別。

方法

名稱 Description
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetAttributes()

回傳一組由此型別描述符所代表的型別的自訂屬性。

GetClassName()

回傳由此類型描述符所代表的類別的完整限定名稱。

GetComponentName()

回傳由此類型描述符所代表的類別名稱。

GetConverter()

回傳此型別描述符所代表的型別轉換器。

GetConverterFromRegisteredType()

回傳此類型型別的型別轉換器

描述詞代表。

GetDefaultEvent()

回傳該物件預設事件的事件描述符,該描述符由此類型描述符所代表。

GetDefaultProperty()

回傳由此類型描述符所代表的物件預設屬性的屬性描述符。

GetEditor(Type)

回傳一個指定型別的編輯器,該編輯器將與該型別描述符所代表的類別相關聯。

GetEvents()

回傳一組由此類型描述符所代表物件的事件描述符。

GetEvents(Attribute[])

回傳一組經過篩選的事件描述符集合,針對此類型描述符所代表的物件。

GetEventsFromRegisteredType()

回傳一組事件描述符

對於這個類型描述符所代表的物件。

GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetProperties()

回傳一組由此類型描述符所代表物件的屬性描述符。

GetProperties(Attribute[])

回傳一組篩選過的屬性描述符集合,針對此類型描述符所代表的物件。

GetPropertiesFromRegisteredType()

回傳一組屬性描述符

對於這個類型描述符所代表的物件。

GetPropertyOwner(PropertyDescriptor)

傳回 物件,其中包含指定之屬性描述項所描述的屬性。

GetType()

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於

另請參閱