Retrieves the return value of the asynchronous operation represented by the
System.IAsyncResult passed.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Function EndInvoke( _
ByVal asyncResult As System.IAsyncResult _
) As System.Object |
| C# | |
|---|
public System.object EndInvoke(
System.IAsyncResult asyncResult
) |
Parameters
- asyncResult
- The System.IAsyncResult that represents a specific invoke asynchronous operation, returned when calling System.Windows.Forms.Control.BeginInvoke(System.Delegate).
Return Value
The
System.Object generated by the asynchronous operation.
Exceptions
| Exception | Description |
| System.ArgumentNullException | The asyncResult parameter value is null. |
| System.ArgumentException | The asyncResult object was not created by a preceding call of the System.Windows.Forms.Control.BeginInvoke(System.Delegate) method from the same control. |
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