System.ComponentModel.RunWorkerCompletedEventArgs Class

Provides data for the MethodNameCompleted event.

See Also: RunWorkerCompletedEventArgs Members


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 System.ComponentModel.RunWorkerCompletedEventArgs delegate to the event, you will receive information about the outcome of asynchronous operations in the System.ComponentModel.RunWorkerCompletedEventArgs parameter of the corresponding event handler.


The System.Security.Permissions.HostProtectionAttribute attribute applied to this class has the following System.Security.Permissions.HostProtectionAttribute.Resources property value: System.Security.Permissions.HostProtectionResource.SharedState. The System.Security.Permissions.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 System.Security.Permissions.HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.


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