Upgrade your Internet Experience
United States - English
Argentina (Español)
Australia (English)
Brasil (Português)
Canada (English)
Canada (Français)
中国 (简体中文)
Colombia (Español)
Deutschland (Deutsch)
España (Español)
France (Français)
India (English)
Italia (Italiano)
日本 (日本語)
México (Español)
Perú (Español)
Россия (Pусский)
United Kingdom (English)
United States (English)
More...
Microsoft.com
Welcome
Sign in
.NET Framework Developer Center
Home
Library
Learn
Downloads
Support
Community
Forums
Printer Friendly Version
Send
Add Content...
Click to Rate and Give Feedback
Give feedback on this content
MSDN Library
MSDN
Please Wait
MSDN Library
Please Wait
.NET Development
Please Wait
.NET Framework 3.5
Please Wait
.NET Framework Class Library
Please Wait
System.ComponentModel Namespace
Please Wait
BackgroundWorker Class
Please Wait
BackgroundWorker Members
Switch on low bandwidth view
Collapse All
Members Filter
Include Protected Members
Include Inherited Members
Frameworks Filter
Include .NET Framework Members
Include .NET Compact Framework Members
Include XNA Framework Members
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5
Other versions are also available for the following:
Microsoft Visual Studio 2005/.NET Framework 2.0
.NET Framework 3.0
Microsoft Silverlight 3
Microsoft Visual Studio 2010/.NET Framework 4.0
.NET Framework Class Library
BackgroundWorker Members
Executes an operation on a separate thread.
The
BackgroundWorker
type exposes the following members.
Constructors
Name
Description
BackgroundWorker
Initializes a new instance of the
BackgroundWorker
class.
Top
Methods
Name
Description
CancelAsync
Requests cancellation of a pending background operation.
CreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from
MarshalByRefObject
.)
Dispose
Overloaded.
Releases the resources used by the
Component
.
Equals
Determines whether the specified
Object
is equal to the current
Object
.
(Inherited from
Object
.)
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
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
.)
MemberwiseClone
Overloaded.
OnDoWork
Raises the
DoWork
event.
OnProgressChanged
Raises the
ProgressChanged
event.
OnRunWorkerCompleted
Raises the
RunWorkerCompleted
event.
ReportProgress
Overloaded.
Raises the
ProgressChanged
event.
RunWorkerAsync
Overloaded.
Starts execution of a background operation.
ToString
Returns a
String
containing the name of the
Component
, if any. This method should not be overridden.
(Inherited from
Component
.)
Top
Properties
Name
Description
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
.)
DesignMode
Gets a value that indicates whether the
Component
is currently in design mode.
(Inherited from
Component
.)
Events
Gets the list of event handlers that are attached to this
Component
.
(Inherited from
Component
.)
IsBusy
Gets a value indicating whether the
BackgroundWorker
is running an asynchronous operation.
Site
Gets or sets the
ISite
of the
Component
.
(Inherited from
Component
.)
WorkerReportsProgress
Gets or sets a value indicating whether the
BackgroundWorker
can report progress updates.
WorkerSupportsCancellation
Gets or sets a value indicating whether the
BackgroundWorker
supports asynchronous cancellation.
Top
Events
Name
Description
Disposed
Occurs when the component is disposed by a call to the
Dispose
method.
(Inherited from
Component
.)
DoWork
Occurs when
RunWorkerAsync
is called.
ProgressChanged
Occurs when
ReportProgress
is called.
RunWorkerCompleted
Occurs when the background operation has completed, has been canceled, or has raised an exception.
Top
See Also
Reference
BackgroundWorker Class
System.ComponentModel Namespace
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
Community Content
Add new content
Annotations
|
Edit
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement