Executes an operation on a separate thread.
| All Members | Constructors | Methods | Properties | Events | |
| Icon | Member | Description |
|---|---|---|
| BackgroundWorker()()()() |
Initializes a new instance of the BackgroundWorker class.
| |
| CancelAsync()()()() |
Requests cancellation of a pending background operation.
| |
| CancellationPending |
Gets a value indicating whether the application has requested cancellation of a background operation.
| |
| CanRaiseEvents |
Gets a value indicating whether the component can raise an event.
(Inherited from Component.) | |
| Container |
Gets the IContainer that contains the Component.
(Inherited from Component.) | |
| CreateObjRef(Type) |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.) | |
| DesignMode |
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.) | |
| Dispose()()()() |
Releases all resources used by the Component.
(Inherited from Component.) | |
| Dispose(Boolean) |
Releases the unmanaged resources used by the Component and optionally releases the managed resources.
(Inherited from Component.) | |
| Disposed |
Occurs when the component is disposed by a call to the Dispose()()()() method.
(Inherited from Component.) | |
| DoWork |
Occurs when RunWorkerAsync()()()() is called.
| |
| Equals(Object) | (Inherited from Object.) | |
| Events |
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.) | |
| Finalize()()()() |
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetLifetimeService()()()() |
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) | |
| GetService(Type) | (Inherited from Component.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| InitializeLifetimeService()()()() |
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) | |
| IsBusy |
Gets a value indicating whether the BackgroundWorker is running an asynchronous operation.
| |
| MemberwiseClone(Boolean) |
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.) | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| ProgressChanged |
Occurs when ReportProgress(Int32) is called.
| |
| ReportProgress(Int32) |
Raises the ProgressChanged event.
| |
| RunWorkerAsync()()()() |
Starts execution of a background operation.
| |
| RunWorkerAsync(Object) |
Starts execution of a background operation.
| |
| RunWorkerCompleted |
Occurs when the background operation has completed, has been cancelled, or has raised an exception.
| |
| Site | (Inherited from Component.) | |
| ToString()()()() |
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.) | |
| WorkerReportsProgress |
Gets or sets a value indicating whether the BackgroundWorker object can report progress updates.
| |
| WorkerSupportsCancellation |
Gets or sets a value indicating whether the BackgroundWorker object supports asynchronous cancellation.
|
Equivalent to System.ComponentModel.BackgroundWorker.
The BackgroundWorker class allows you to run an operation on a separate, dedicated thread. Time-consuming operations like downloads and database transactions can cause your user interface (UI) to seem as though it has stopped responding while they are running. When you want a responsive UI and you are faced with long delays associated with such operations, the BackgroundWorker class provides a convenient solution.| Object | |||
| MarshalByRefObject | |||
| Component | |||
| BackgroundWorker | |||