AttributeTableBuilder 类

定义

创建并填充 AttributeTable 用于提供属性查找和注册的属性 MetadataStore

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

注解

使用 AddCallbackAddCustomAttributes填充 AddTable 生成器,然后调用 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()

验证正在生成的属性表是否包含有效的属性信息。

适用于