RegistrationBuilder 类

定义

表示反射上下文,其有相关的协定,描述了规则,该规则用于修饰具有托管的扩展性框架 (MEF) 属性的条目。

public ref class RegistrationBuilder : System::Reflection::Context::CustomReflectionContext
public class RegistrationBuilder : System.Reflection.Context.CustomReflectionContext
type RegistrationBuilder = class
    inherit CustomReflectionContext
Public Class RegistrationBuilder
Inherits CustomReflectionContext
继承

构造函数

RegistrationBuilder()

初始化 RegistrationBuilder 类的新实例。

方法

AddProperties(Type)

在派生类中重写时,为在此反射上下文中指定的类型提供附加属性的集合。

(继承自 CustomReflectionContext)
CreateProperty(Type, String, Func<Object,Object>, Action<Object,Object>)

创建表示要加到AddProperties(Type) 方法一起使用的类型的属性的对象。

(继承自 CustomReflectionContext)
CreateProperty(Type, String, Func<Object,Object>, Action<Object,Object>, IEnumerable<Attribute>, IEnumerable<Attribute>, IEnumerable<Attribute>)

使用指定自定义特性,创建表示要加到AddProperties(Type) 方法一起使用的类型的属性的对象。

(继承自 CustomReflectionContext)
Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
ForType(Type)

获取表示适用于指定类型的规则的对象。

ForType<T>()

获取表示适用于指定类型的规则的强类型对象。

ForTypesDerivedFrom(Type)

获取表示适用于实现指定类型的所有类型,但其不适用于指定类型的规则的对象。

ForTypesDerivedFrom<T>()

获取表示适用于实现指定类型的所有类型,但其不适用于指定类型的规则的强类型对象。

ForTypesMatching(Predicate<Type>)

获取表示适用于匹配指定谓词的所有类型的规则的对象。

ForTypesMatching<T>(Predicate<Type>)

获取表示适用于匹配指定谓词的所有类型的规则的强类型对象。

GetCustomAttributes(MemberInfo, IEnumerable<Object>)

为指定的成员提供自定义属性的列表,如此反射上下文中表示的那样。

GetCustomAttributes(ParameterInfo, IEnumerable<Object>)

为指定的参数提供自定义属性的列表,如此反射上下文中表示的那样。

GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
GetTypeForObject(Object)

获取本反射上下文中特定对象的类的表示形式。

(继承自 ReflectionContext)
MapAssembly(Assembly)

在此反射上下文中,获取由另一反射上下文对象表示的程序集表示形式。

(继承自 CustomReflectionContext)
MapType(TypeInfo)

让此反射上下文中某种类型的表现形式由另一反射上下文中的对象表示。

(继承自 CustomReflectionContext)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

适用于