Invokes the specified method on the control. All parameters and the return value need to be serializable.
| C# | Visual Basic | Visual C++ |
public Object InvokeMethod( BindingFlags flags, string name, Object[] args )
Public Function InvokeMethod ( _ flags As BindingFlags, _ name As String, _ args As Object() _ ) As Object
public: Object^ InvokeMethod( BindingFlags flags, String^ name, array<Object^>^ args )
- flags (BindingFlags)
- A combination of flags that further specify which method to invoke.
- name (String)
- The name of the method to invoke.
- args (array< Object >[]()[])
- The (serializable) values passed as parameters to the method.
The (serializable) return value of the invoked method.
| Exception | Condition |
|---|---|
| ActionFailedException | Thrown if invoking the action failed. |
