Executes the specified delegate asynchronously on the thread that the control's underlying handle was created on.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Overloads Function BeginInvoke( _
ByVal method As System.Delegate _
) As System.IAsyncResult |
| C# | |
|---|
public System.IAsyncResult BeginInvoke(
System.Delegate method
) |
Parameters
- method
- A delegate to a method that takes no parameters.
Return Value
An
System.IAsyncResult that represents the result of the
System.Windows.Forms.Control.BeginInvoke(System.Delegate) operation.
Exceptions
| Exception | Description |
| System.InvalidOperationException | No appropriate window handle can be found. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also