Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MethodInfo.CreateDelegate Method (Type, Object)

.NET Framework 4.6 and 4.5

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

Namespace:  System.Reflection
Assemblies:   mscorlib (in mscorlib.dll)
  System.Reflection (in System.Reflection.dll)

Public Overridable Function CreateDelegate ( _
	delegateType As Type, _
	target As Object _
) As Delegate


Type: System.Type

The type of the delegate to create.

Type: System.Object

The object targeted by the delegate.

Return Value

Type: System.Delegate
The delegate for this method.

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
© 2015 Microsoft