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

InvokeMethod

Example: InvokeMethod Alphabetical List of Functions

Invokes a method.

object InvokeMethod(object targetObj,  string methodName, int metadataToken, object[] parameters)
targetObj The target upon which to invoke the method.
methodName The name of the method.
metadataToken The metadataToken of the method.
parameters The method parameters.

InvokeMethod invokes a method indicated by its name, type, and metadataToken. It returns the result of the method invocation.

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

Parameterization

Parameterization is not applicable to this function.