Synchronously executes the delegate on the thread that created this object and marshals the call to the creating thread.
- Parameters
-
method | A xtd::delegate that contains a method to call, in the context of the thread for the control. |
args | An array of type xtd::object that represents the arguments to pass to the given method. This can be empty if no arguments are needed. |
- Returns
- An xtd::object that represents the return value from the delegate being invoked, or null if the delegate has no return value.
Implemented in xtd::forms::control, and xtd::forms::control.