 | JavaElementInvokeMethod Method (String, Object) |
Invokes a public method on the remote Java object represented by this Element.
Namespace:
Ranorex
Assembly:
Ranorex.Plugin.Java (in Ranorex.Plugin.Java.dll) Version: 12.7.4-git.38314c06
Syntaxpublic Object InvokeMethod(
string methodName,
params Object[] args
)
Public Function InvokeMethod (
methodName As String,
ParamArray args As Object()
) As Object
Parameters
- methodName
- Type: SystemString
The name of method to invoke. - args
- Type: SystemObject
A list of method arguments. (Supports string,int,long,bool,null).
Return Value
Type:
ObjectThe value returned by the method or null if method has "void" return type.
See Also