GetMethod

Message Functions
.NET Vuser Functions

Retrieves MethodInfo for a method.

MethodInfo GetMethod(Type type, string name, int metadataToken);
typeThe type that contains the method.
nameThe name of the method.
metadataTokenThe 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);