Export (0) Print
Expand All

BackgroundWorker Members

Executes an operation on a separate thread.

The following tables list the members exposed by the BackgroundWorker type.

  Name Description
Public method BackgroundWorker Initializes a new instance of the BackgroundWorker class.
Top

(see also Protected Properties )
  Name Description
Public property CancellationPending Gets a value indicating whether the application has requested cancellation of a background operation.
Public property Container  Gets the IContainer that contains the Component.(inherited from Component)
Public property IsBusy Gets a value indicating whether the BackgroundWorker is running an asynchronous operation.
Public property Site  Gets or sets the ISite of the Component.(inherited from Component)
Public property WorkerReportsProgress Gets or sets a value indicating whether the BackgroundWorker can report progress updates.
Public property WorkerSupportsCancellation Gets or sets a value indicating whether the BackgroundWorker supports asynchronous cancellation.
Top

  Name Description
Protected property CanRaiseEvents  Gets a value indicating whether the component can raise an event.(inherited from Component)
Protected property DesignMode  Gets a value that indicates whether the Component is currently in design mode.(inherited from Component)
Protected property Events  Gets the list of event handlers that are attached to this Component.(inherited from Component)
Top

(see also Protected Methods )
  Name Description
Public method CancelAsync Requests cancellation of a pending background operation.
Public method 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)
Public method Dispose  Overloaded. Releases the resources used by the Component. (inherited from Component)
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetLifetimeService  Retrieves the current lifetime service object that controls the lifetime policy for this instance. (inherited from MarshalByRefObject)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method InitializeLifetimeService  Obtains a lifetime service object to control the lifetime policy for this instance. (inherited from MarshalByRefObject)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ReportProgress Overloaded. Raises the ProgressChanged event.
Public method RunWorkerAsync Overloaded. Starts execution of a background operation.
Public method ToString  Returns a String containing the name of the Component, if any. This method should not be overridden. (inherited from Component)
Top

  Name Description
Protected method Dispose  Overloaded. Releases the resources used by the Component. (inherited from Component)
Protected method Finalize  Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (inherited from Component)
Protected method GetService  Returns an object that represents a service provided by the Component or by its Container. (inherited from Component)
Protected method MemberwiseClone  Overloaded. (inherited from MarshalByRefObject)
Protected method OnDoWork Raises the DoWork event.
Protected method OnProgressChanged Raises the ProgressChanged event.
Protected method OnRunWorkerCompleted Raises the RunWorkerCompleted event.
Top

  Name Description
Public event Disposed  Occurs when the component is disposed by a call to the Dispose method. (inherited from Component)
Public event DoWork Occurs when RunWorkerAsync is called.
Public event ProgressChanged Occurs when ReportProgress is called.
Public event RunWorkerCompleted Occurs when the background operation has completed, has been canceled, or has raised an exception.
Top

Community Additions

ADD
Show:
© 2014 Microsoft