Click or drag to resize
Ranorex

ControlInvokeMethod Method (String, Object)

Invokes the specified method on the control. All parameters need to be serializable.

Namespace:  Ranorex
Assembly:  Ranorex.Plugin.WinForms (in Ranorex.Plugin.WinForms.dll) Version: 12.7.4-git.38314c06
Syntax
public Object InvokeMethod(
	string name,
	Object[] args
)

Parameters

name
Type: SystemString
The name of the method to invoke.
args
Type: SystemObject
The (serializable) values passed as parameters to the method.

Return Value

Type: Object
The (serializable) return value of the invoked method.
Exceptions
ExceptionCondition
ActionFailedExceptionThrown if invoking the action failed.
Remarks
Use this method to invoke public instance methods on a control.
See Also