MethodInfo.CreateDelegate MethodInfo.CreateDelegate MethodInfo.CreateDelegate Method

Definition

Creates a delegate from this method.

Overloads

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)

Creates a delegate of the specified type with the specified target from this method.

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);
Public Overridable Function CreateDelegate (delegateType As Type) As Delegate
Parameters
delegateType
Type Type Type

The type of the delegate to create.

Returns

The delegate for this method.

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);
Public Overridable Function CreateDelegate (delegateType As Type, target As Object) As Delegate
Parameters
delegateType
Type Type Type

The type of the delegate to create.

target
Object Object Object

The object targeted by the delegate.

Returns

The delegate for this method.

Applies to