System.ComponentModel.RunWorkerCompletedEventArgs Class

Provides data for the MethodNameCompleted event.

See Also: RunWorkerCompletedEventArgs


public class RunWorkerCompletedEventArgs : AsyncCompletedEventArgs


If you are using a class that implements the Event-based Asynchronous Pattern, the class provides a MethodNameCompleted event. MethodName is a placeholder for the first part of the method's name. BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs) is an example of the name of such a method. If you add an instance of the RunWorkerCompletedEventArgs delegate to the event, you will receive information about the outcome of asynchronous operations in the RunWorkerCompletedEventArgs parameter of the corresponding event handler.


The HostProtectionAttribute attribute applied to this class has the following HostProtectionAttribute.Resources property value: HostProtectionResource.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.


Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions:,
Since: .NET 2.0

The members of System.ComponentModel.RunWorkerCompletedEventArgs are listed below.

See Also: AsyncCompletedEventArgs

Public Constructors

Public Properties


Gets a value that represents the result of an asynchronous operation.


Gets a value that represents the user state.