Utility Functions and C Language Reference > .NET Vuser Functions > Alphabetical List of Functions > GetMethod

GetMethod

Example: GetMethod Alphabetical List of 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.