Share this page

# CreateDelegateFromMethod

Example: CreateDelegateFromMethod | Alphabetical List of Functions

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

    Delegate CreateDelegateFromMethod(Type delegateType, Type type, object targetObject, string name, int metadataToken);

This function returns a delegate of the specified type that represents the specified static or instance method.

delegateType | The type of delegate to create.
type | The type that contains the method.
targetObject | The object to which the delegate is bound, or a null reference to treat the method as static.
name | The name of the method.
metadataToken | The metadataToken of the method.

Note: Do not add this function manually to a script. It is generated by VuGen automatically.

## Parameterization

Parameterization is not applicable to this function.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: