BackgroundWorker.IsBusy Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets a value that indicates whether the BackgroundWorker is running a background operation.
Assembly: System (in System.dll)
Property Value
Type: System.Booleantrue, if the BackgroundWorker is running a background operation; otherwise, false.
The BackgroundWorker starts a background operation when you call the RunWorkerAsync method. If the background worker's IsBusy property is true, calling RunWorkerAsync again will raise an InvalidOperationException.
The following code example demonstrates the use of the IsBusy property to check whether a background operation is already running before starting it. To view the complete code for this sample, see How to use a background worker for Windows Phone 8.