| Visual Basic (Declaration) | |
|---|---|
Public Function EndInvoke( _ ByVal asyncResult As IAsyncResult _ ) As Object | |
| C# | |
|---|---|
public object EndInvoke( 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.| Exception | Description |
|---|---|
| System.ArgumentNullException | The asyncResult parameter value is a null reference (Nothing in Visual Basic). |
| 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. |