.NET Framework Class Library
BackgroundWorker Members

Executes an operation on a separate thread.

The BackgroundWorker type exposes the following members.

Constructors

  NameDescription
Public methodBackgroundWorkerInitializes a new instance of the BackgroundWorker class.
Top
Methods

  NameDescription
Public methodCancelAsyncRequests cancellation of a pending background operation.
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodDisposeOverloaded. Releases the resources used by the Component.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodGetServiceReturns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodMemberwiseCloneOverloaded.
Protected methodOnDoWorkRaises the DoWork event.
Protected methodOnProgressChangedRaises the ProgressChanged event.
Protected methodOnRunWorkerCompletedRaises the RunWorkerCompleted event.
Public methodReportProgressOverloaded. Raises the ProgressChanged event.
Public methodRunWorkerAsyncOverloaded. Starts execution of a background operation.
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Top
Properties

  NameDescription
Public propertyCancellationPendingGets a value indicating whether the application has requested cancellation of a background operation.
Protected propertyCanRaiseEventsGets a value indicating whether the component can raise an event. (Inherited from Component.)
Public propertyContainerGets the IContainer that contains the Component. (Inherited from Component.)
Protected propertyDesignModeGets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Protected propertyEventsGets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public propertyIsBusyGets a value indicating whether the BackgroundWorker is running an asynchronous operation.
Public propertySiteGets or sets the ISite of the Component. (Inherited from Component.)
Public propertyWorkerReportsProgressGets or sets a value indicating whether the BackgroundWorker can report progress updates.
Public propertyWorkerSupportsCancellationGets or sets a value indicating whether the BackgroundWorker supports asynchronous cancellation.
Top
Events

  NameDescription
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Public eventDoWorkOccurs when RunWorkerAsync is called.
Public eventProgressChangedOccurs when ReportProgress is called.
Public eventRunWorkerCompletedOccurs when the background operation has completed, has been canceled, or has raised an exception.
Top
See Also

Reference

Tags :


Page view tracker