MethodInfo.CreateDelegate MethodInfo.CreateDelegate MethodInfo.CreateDelegate MethodInfo.CreateDelegate Method

定义

从此方法创建委托。Creates a delegate from this method.

重载

CreateDelegate(Type) CreateDelegate(Type) CreateDelegate(Type) CreateDelegate(Type)

从此方法创建指定类型的委托。Creates a delegate of the specified type from this method.

CreateDelegate(Type, Object) CreateDelegate(Type, Object) CreateDelegate(Type, Object) CreateDelegate(Type, Object)

从此方法创建具有指定目标的指定类型的委托。Creates a delegate of the specified type with the specified target from this method.

CreateDelegate(Type) CreateDelegate(Type) CreateDelegate(Type) CreateDelegate(Type)

从此方法创建指定类型的委托。Creates a delegate of the specified type from this method.

public:
 virtual Delegate ^ CreateDelegate(Type ^ delegateType);
public virtual Delegate CreateDelegate (Type delegateType);
abstract member CreateDelegate : Type -> Delegate
override this.CreateDelegate : Type -> Delegate
Public Overridable Function CreateDelegate (delegateType As Type) As Delegate

参数

delegateType
Type Type Type Type

要创建的委托的类型。The type of the delegate to create.

返回

此方法的委托。The delegate for this method.

CreateDelegate(Type, Object) CreateDelegate(Type, Object) CreateDelegate(Type, Object) CreateDelegate(Type, Object)

从此方法创建具有指定目标的指定类型的委托。Creates a delegate of the specified type with the specified target from this method.

public:
 virtual Delegate ^ CreateDelegate(Type ^ delegateType, System::Object ^ target);
public virtual Delegate CreateDelegate (Type delegateType, object target);
abstract member CreateDelegate : Type * obj -> Delegate
override this.CreateDelegate : Type * obj -> Delegate
Public Overridable Function CreateDelegate (delegateType As Type, target As Object) As Delegate

参数

delegateType
Type Type Type Type

要创建的委托的类型。The type of the delegate to create.

target
Object Object Object Object

代理以该对象为目标。The object targeted by the delegate.

返回

此方法的委托。The delegate for this method.

适用于