AsyncCompletedEventArgs(Exception, Boolean, Object) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the AsyncCompletedEventArgs class.
public:
AsyncCompletedEventArgs(Exception ^ error, bool cancelled, System::Object ^ userState);
public AsyncCompletedEventArgs(Exception? error, bool cancelled, object? userState);
public AsyncCompletedEventArgs(Exception error, bool cancelled, object userState);
new System.ComponentModel.AsyncCompletedEventArgs : Exception * bool * obj -> System.ComponentModel.AsyncCompletedEventArgs
Public Sub New (error As Exception, cancelled As Boolean, userState As Object)
Parameters
- error
- Exception
Any error that occurred during the asynchronous operation.
- cancelled
- Boolean
A value indicating whether the asynchronous operation was canceled.
- userState
- Object
The optional user-supplied state object passed to the RunWorkerAsync(Object) method.