AttributeTable 类
定义
特性表是元数据特性的只读集合,其中的特性与特定的类型、成员和依赖项关联。The attribute table is a read-only collection of metadata attributes that are associated with specific types, members, and dependencies.
public ref class AttributeTable sealed
public sealed class AttributeTable
type AttributeTable = class
Public NotInheritable Class AttributeTable
- 继承
-
AttributeTable
注解
此表是使用 AttributeTableBuilder 创建的,并且它由 MetadataStore 使用。This table is created using the AttributeTableBuilder and is used by the MetadataStore.
AttributeTable 是使用 AttributeTableBuilder 创建的,并且它由 MetadataStore 使用。The AttributeTable is created using the AttributeTableBuilder and is used by the MetadataStore.
属性
| AttributedTypes |
返回在属性、成员或类型本身上具有特性重写的所有类型的枚举。Returns an enumeration of all types that have attribute overrides, on a property, member, or the type itself. |
方法
| ContainsAttributes(Type) |
确定此表是否包含给定类型的元数据。Determines whether this table contains metadata for the given type. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetCustomAttributes(Type) |
返回为指定类型提供的所有类级别特性的枚举。Returns an enumeration of all class-level attributes provided for the specified type. |
| GetCustomAttributes(Type, DependencyProperty) |
返回为具有指定类型的指定依赖项提供的所有特性的枚举。Returns an enumeration of all attributes provided for the specified dependency of the specified type. |
| GetCustomAttributes(Type, MemberDescriptor) |
返回为具有指定类型的指定成员提供的所有特性的枚举。Returns an enumeration of all attributes provided for the specified member of the specified type. |
| GetCustomAttributes(Type, MemberInfo) |
返回为具有指定类型的指定成员提供的所有特性的枚举。Returns an enumeration of all attributes provided for the specified member of the specified type. |
| GetCustomAttributes(Type, String) |
返回为具有指定类型的指定成员提供的所有特性的枚举。Returns an enumeration of all attributes provided for the specified member of the specified type. |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |