Share this page

# GetMethod

Message Functions

.NET Vuser Functions

Retrieves MethodInfo for a method.

    MethodInfo GetMethod(Type type, string name, int metadataToken);

type | The type that contains the method.
name | The name of the method.
metadataToken | The metadataToken value of the method.

GetMethod returns the MethodInfo of the specified member type, indicated by its name and metadataToken.

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

## Parameterization

Parameterization is not applicable to this function.

## Example

This example shows the retrieving of the MethodInfo for the add_PublicMyEvent method.

    System.Reflection.MethodInfo info=LrReplayUtils.GetMethod(this.target.GetType(),"add_PublicMyEvent",100663400);

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