In The Hand LtdIn The Hand
BackgroundWorker Class
NamespacesInTheHand.ComponentModelBackgroundWorker
.NET Components for Mobility
Executes an operation on a separate thread.
Declaration Syntax
C#Visual Basic
public class BackgroundWorker : Component
Public Class BackgroundWorker _
	Inherits Component
Members
All MembersConstructorsMethodsPropertiesEvents



IconMemberDescription
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)
Determines whether the specified Object is equal to the current 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)
Returns an object that represents a service provided by the Component or by its Container.
(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
Gets or sets the ISite of the Component.
(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.

Remarks

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.
Inheritance Hierarchy
Object
MarshalByRefObject
 Component
  BackgroundWorker

Assembly: InTheHand (Module: InTheHand) Version: 7.0.0.0