7 [global::__DynamicallyInvokable]
13 private readonly
bool cancelled;
15 private readonly
object userState;
20 [SRDescription(
"Async_AsyncEventArgs_Cancelled")]
21 [global::__DynamicallyInvokable]
24 [global::__DynamicallyInvokable]
33 [SRDescription(
"Async_AsyncEventArgs_Error")]
34 [global::__DynamicallyInvokable]
37 [global::__DynamicallyInvokable]
46 [SRDescription(
"Async_AsyncEventArgs_UserState")]
47 [global::__DynamicallyInvokable]
50 [global::__DynamicallyInvokable]
58 [Obsolete(
"This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.",
true)]
68 [global::__DynamicallyInvokable]
72 this.cancelled = cancelled;
73 this.userState = userState;
79 [global::__DynamicallyInvokable]
Exception Error
Gets a value indicating which error occurred during an asynchronous operation.
EditorBrowsableState
Specifies the browsable state of a property or method from within an editor.
Represents the base class for classes that contain event data, and provides a value to use for events...
Provides data for the MethodNameCompleted event.
SecurityAction
Specifies the security actions that can be performed using declarative security.
object UserState
Gets the unique identifier for the asynchronous task.
void RaiseExceptionIfNecessary()
Raises a user-supplied exception if an asynchronous operation failed.
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
bool Cancelled
Gets a value indicating whether an asynchronous operation has been canceled.
The exception that is thrown when a method call is invalid for the object's current state.
The exception that is thrown by methods invoked through reflection. This class cannot be inherited.
AsyncCompletedEventArgs()
Initializes a new instance of the T:System.ComponentModel.AsyncCompletedEventArgs class.
AsyncCompletedEventArgs(Exception error, bool cancelled, object userState)
Initializes a new instance of the T:System.ComponentModel.AsyncCompletedEventArgs class.