 | ControlInvokeMethod Method (BindingFlags, String, Object, Duration) |
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
Syntaxpublic virtual Object InvokeMethod(
BindingFlags flags,
string name,
Object[] args,
Duration timeout
)
Public Overridable Function InvokeMethod (
flags As BindingFlags,
name As String,
args As Object(),
timeout As Duration
) As Object
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. - timeout
- Type: RanorexDuration
The timeout for this action. The action will return after the timeout even if the method has not yet finished executing.
Return Value
Type:
ObjectThe (serializable) return value of the invoked method.
Exceptions
See Also