Method BeginInvoke
BeginInvoke(Delegate, object?[])
Executes a delegate asynchronously on the UI thread.
public static IAsyncResult BeginInvoke(Delegate method, object?[] args)
Parameters
method
DelegateA delegate to a method that takes parameters of the same number and type that are contained in the args parameter.
args
object[]An array of objects to pass as arguments to the given method. This can be
null
if no arguments are needed.
Returns
- IAsyncResult
An IAsyncResult that represents the result of the operation.