_AsyncCompletedEventArgs Type

Provides data for the MethodName Completed event.

Namespace: CNClrLib.Control.EventArgs
 _AsyncCompletedEventArgs = CNClrLib.ComponentModel._AsyncCompletedEventArgs;

If you add an instance of the TAsyncCompletedEventHandler delegate to the event, you will receive information about the outcome of asynchronous operations in the AsyncCompletedEventArgs parameter of the corresponding event-handler method.

The client application's event-handler delegate can check the Cancelled property to determine if the asynchronous task was cancelled.

The client application's event-handler delegate can check the Error property to determine if an exception occurred during execution of the asynchronous task.

If the class supports multiple asynchronous methods, or multiple calls to the same asynchronous method, you can determine which task raised the MethodName Completed event by checking the value of the UserState property. Your code will need to track these tokens, known as task IDs, as their corresponding asynchronous tasks start and complete.

For more information, see AsyncCompletedEventArgs in C#.



Gets a value indicating whether an asynchronous operation has been canceled.


Gets a value indicating which error occurred during an asynchronous operation.


Gets the unique identifier for the asynchronous task.


Raises a user-supplied exception if an asynchronous operation failed.