BeginInvoke

Initiate asynchronous .NET delegate call

Syntax

result = BeginInvoke(arg1,...,argN,callback,object)

Description

result = BeginInvoke(arg1,...,argN,callback,object) initiates asynchronous call to a .NET delegate. You must call EndInvoke to complete the asynchronous call.

Input Arguments

arg1,...,argN

Input arguments for delegate. The type and number of arguments must agree with the delegate signature.

callback

.NET System.AsyncCallback delegate, or [] null value.

object

User-defined object, or [] null value.

Output Arguments

result

.NET System.IAsyncResult object. Used to monitor the progress of the asynchronous call. Input argument to EndInvoke.

Introduced in R2011a