Click or drag to resize
Ranorex

ControlInvokeMethod Method (BindingFlags, String, Object)

Invokes the specified method on the control. All parameters and the return value 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(
	BindingFlags flags,
	string name,
	Object[] args
)

Parameters

flags
Type: System.ReflectionBindingFlags
A combination of flags that further specify which method to invoke.
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.
See Also