Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Delegate.CreateDelegate Method

Creates a delegate of the specified type.

Overload List

Creates a delegate of the specified type to represent the specified static method.

[Visual Basic] Overloads Public Shared Function CreateDelegate(Type, MethodInfo) As Delegate
[C#] public static Delegate CreateDelegate(Type, MethodInfo);
[C++] public: static Delegate* CreateDelegate(Type*, MethodInfo*);
[JScript] public static function CreateDelegate(Type, MethodInfo) : Delegate;

Creates a delegate of the specified type that represents the specified instance method to invoke on the specified class instance.

[Visual Basic] Overloads Public Shared Function CreateDelegate(Type, Object, String) As Delegate
[C#] public static Delegate CreateDelegate(Type, object, string);
[C++] public: static Delegate* CreateDelegate(Type*, Object*, String*);
[JScript] public static function CreateDelegate(Type, Object, String) : Delegate;

Creates a delegate of the specified type that represents the specified static method of the specified class.

[Visual Basic] Overloads Public Shared Function CreateDelegate(Type, Type, String) As Delegate
[C#] public static Delegate CreateDelegate(Type, Type, string);
[C++] public: static Delegate* CreateDelegate(Type*, Type*, String*);
[JScript] public static function CreateDelegate(Type, Type, String) : Delegate;

Creates a delegate of the specified type that represents the specified instance method to invoke on the specified class instance with the specified case-sensitivity.

[Visual Basic] Overloads Public Shared Function CreateDelegate(Type, Object, String, Boolean) As Delegate
[C#] public static Delegate CreateDelegate(Type, object, string, bool);
[C++] public: static Delegate* CreateDelegate(Type*, Object*, String*, bool);
[JScript] public static function CreateDelegate(Type, Object, String, Boolean) : Delegate;

See Also

Delegate Class | Delegate Members | System Namespace

Show:
© 2016 Microsoft