 | WinformsCoreControlInvokeMethod Method (String, Object) |
Invokes the specified method on the control. All parameters need to be serializable.
Namespace:
Ranorex
Assembly:
Ranorex.Plugin.WinForms.Core (in Ranorex.Plugin.WinForms.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic Object InvokeMethod(
string name,
Object[] args
)
Public Function InvokeMethod (
name As String,
args As Object()
) As Object
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:
ObjectThe (serializable) return value of the invoked method.
Exceptions
Remarks
Use this method to invoke public instance methods on a control.
See Also