System.ComponentModel.RunWorkerCompletedEventArgs Class

Provides data for the MethodNameCompleted event.

See Also: RunWorkerCompletedEventArgs Members

Syntax

public class RunWorkerCompletedEventArgs : AsyncCompletedEventArgs

Remarks

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.

Note:

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.

Requirements

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