System
2.0.0.0
4.0.0.0
System.EventArgs
If you are using a class that implements the Event-based Asynchronous Pattern Overview, the class will provide a MethodNameCompleted event. If you add an instance of the delegate to the event, you will receive information about the outcome of asynchronous operations in the parameter of the corresponding event-handler method.
The client application's event-handler delegate can check the property to determine if the asynchronous task was cancelled.
The client application's event-handler delegate can check the 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 MethodNameCompleted event by checking the value of the property. Your code will need to track these tokens, known as task IDs, as their corresponding asynchronous tasks start and complete.
Provides data for the MethodNameCompleted event.
Constructor
2.0.0.0
4.0.0.0
To be added.
Initializes a new instance of the class.
Any error that occurred during the asynchronous operation.
A value indicating whether the asynchronous operation was canceled.
The optional user-supplied state object passed to the method.
Property
2.0.0.0
4.0.0.0
System.Boolean
To be added.
When the property is true, the asynchronous operation was interrupted.
The client application's event-handler delegate should check the property before accessing any properties in a class derived from ; otherwise, the property will raise an if the asynchronous operation was interrupted.
Gets a value indicating whether an asynchronous operation has been canceled.
Property
2.0.0.0
4.0.0.0
System.Exception
To be added.
If an exception is raised during an asynchronous operation, the class will assign the exception to the property. The client application's event-handler delegate should check the property before accessing any properties in a class derived from ; otherwise, the property will raise a with its property holding a reference to .
The value of the property is null if the operation was canceled.
Gets a value indicating which error occurred during an asynchronous operation.
Method
2.0.0.0
4.0.0.0
System.Void
To be added.
Raises a user-supplied exception if an asynchronous operation failed.
Property
2.0.0.0
4.0.0.0
System.Object
To be added.
If a class supports multiple asynchronous methods, or multiple invocations of a single method, you can determine which task raised the MethodNameCompleted event by checking the value of the property. Your code will need track these tokens, known as task IDs, as their corresponding asynchronous tasks start and complete.
The value of this property is set during the original call to the asynchronous method that started the task.
Gets the unique identifier for the asynchronous task.