ISynchronizeInvoke.BeginInvoke Method

Asynchronously executes the delegate on the thread that created this object.

Namespace: System.ComponentModel
Assembly: System (in system.dll)

IAsyncResult BeginInvoke (
	Delegate method,
	Object[] args
)
IAsyncResult BeginInvoke (
	Delegate method, 
	Object[] args
)
function BeginInvoke (
	method : Delegate, 
	args : Object[]
) : IAsyncResult
Not applicable.

Parameters

method

A Delegate to a method that takes parameters of the same number and type that are contained in args.

args

An array of type Object to pass as arguments to the given method. This can be a null reference (Nothing in Visual Basic) if no arguments are needed.

Return Value

An IAsyncResult interface that represents the asynchronous operation started by calling this method.

The method delegate is executed on the thread that created the object, instead of the thread on which BeginInvoke was called.

The delegate is called asynchronously, and this method returns immediately. You can call this method from any thread. If you need the return value from a process started with this method, call EndInvoke to get the value.

If you need to call the delegate synchronously, use the Invoke method instead.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Show: