TypeDelegator 构造函数

定义

初始化 TypeDelegator 类的新实例。Initializes a new instance of the TypeDelegator class.

重载

TypeDelegator()

使用默认属性初始化 TypeDelegator 类的新实例。Initializes a new instance of the TypeDelegator class with default properties.

TypeDelegator(Type)

在指定封装实例的情况下,初始化 TypeDelegator 类的新实例。Initializes a new instance of the TypeDelegator class specifying the encapsulating instance.

TypeDelegator()

使用默认属性初始化 TypeDelegator 类的新实例。Initializes a new instance of the TypeDelegator class with default properties.

protected:
 TypeDelegator();
protected TypeDelegator ();
Protected Sub New ()

TypeDelegator(Type)

在指定封装实例的情况下,初始化 TypeDelegator 类的新实例。Initializes a new instance of the TypeDelegator class specifying the encapsulating instance.

public:
 TypeDelegator(Type ^ delegatingType);
public TypeDelegator (Type delegatingType);
new System.Reflection.TypeDelegator : Type -> System.Reflection.TypeDelegator
Public Sub New (delegatingType As Type)

参数

delegatingType
Type

Type 类的实例,它封装对对象方法的调用。The instance of the class Type that encapsulates the call to the method of an object.

例外

delegatingTypenulldelegatingType is null.

注解

此构造函数从类中调用,以根据定义方法的类的 Type 对象生成委托。This constructor is called from a class to generate a delegate based upon the Type object for the class defining the method.

适用于