Share via


AttributeTableBuilder 類別

定義

建立與填入 AttributeTable 所使用的 MetadataStore,以提供屬性查閱和註冊。

public ref class AttributeTableBuilder
public class AttributeTableBuilder
type AttributeTableBuilder = class
Public Class AttributeTableBuilder
繼承
AttributeTableBuilder

備註

使用 AddCallbackAddCustomAttributesAddTable 填入產生器,然後呼叫 CreateTable 取得包含所需屬性集合的 AttributeTable

建構函式

AttributeTableBuilder()

建立 AttributeTableBuilder 類別的新執行個體。

方法

AddCallback(Type, AttributeCallback)

指定需要給定之型別的中繼資料時,將叫用的回呼。

AddCustomAttributes(Type, Attribute[])

將提供之屬性的內容加入至這個產生器。

AddCustomAttributes(Type, DependencyProperty, Attribute[])

將提供之屬性的內容加入至這個產生器。

AddCustomAttributes(Type, MemberDescriptor, Attribute[])

將提供之屬性的內容加入至這個產生器。

AddCustomAttributes(Type, MemberInfo, Attribute[])

將提供之屬性的內容加入至這個產生器。

AddCustomAttributes(Type, String, Attribute[])

將提供之屬性的內容加入至這個產生器。

AddTable(AttributeTable)

將所提供之屬性表格的內容加入至此產生器。

CreateTable()

建立屬性表格,其中包含透過 AddCustomAttributes(Type, Attribute[]) 呼叫所提供的全部屬性定義。

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)
ValidateTable()

確認要建置的屬性表格包含有效的屬性資訊。

適用於