Provides data for the MethodNameCompleted event.
Assemblies: System.ComponentModel.EventBasedAsync (in System.ComponentModel.EventBasedAsync.dll)
System (in System.dll)
Thetype exposes the following members.
|Cancelled||Gets a value indicating whether an asynchronous operation has been canceled. (Inherited from AsyncCompletedEventArgs.)|
|Error||Gets a value indicating which error occurred during an asynchronous operation. (Inherited from AsyncCompletedEventArgs.)|
|Result||Gets a value that represents the result of an asynchronous operation.|
|UserState||Gets a value that represents the user state.|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|RaiseExceptionIfNecessary||Raises a user-supplied exception if an asynchronous operation failed. (Inherited from AsyncCompletedEventArgs.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
If you are using a class that implements the Event-based Asynchronous Pattern Overview, the class provides a MethodNameCompleted event. MethodName is a placeholder for the first part of the method's name. BackgroundWorker.OnRunWorkerCompleted is an example of the name of such a method. 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.
The HostProtectionAttribute attribute applied to this class has the following Resources property value: SharedState. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.