.NET Framework Class Library for Silverlight
BackgroundWorker Members

Runs 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 methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnDoWorkRaises the DoWork event.
Protected methodOnProgressChangedRaises the ProgressChanged event.
Protected methodOnRunWorkerCompletedRaises the RunWorkerCompleted event.
Public methodReportProgressOverloaded. Raises the ProgressChanged event.
Public methodRunWorkerAsyncOverloaded. Starts running a background operation.
Public methodToStringReturns a String that represents the current Object. (Inherited from Object.)
Top
Properties

  NameDescription
Public propertyCancellationPendingGets a value that indicates whether the application has requested cancellation of a background operation.
Public propertyIsBusyGets a value that indicates whether the BackgroundWorker is running a background operation.
Public propertyWorkerReportsProgressGets or sets a value that indicates whether the BackgroundWorker can report progress updates.
Public propertyWorkerSupportsCancellationGets or sets a value that indicates whether the BackgroundWorker supports asynchronous cancellation.
Top
Events

  NameDescription
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