System.ComponentModel.BackgroundWorker.RunWorkerAsync Method

Starts execution of a background operation.

Syntax

public void RunWorkerAsync ()

Remarks

The BackgroundWorker.RunWorkerAsync method submits a request to start the operation running asynchronously. When the request is serviced, the BackgroundWorker.DoWork event is raised, which in turn starts execution of your background operation.

If the background operation is already running, calling BackgroundWorker.RunWorkerAsync again will raise an InvalidOperationException.

Requirements

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