Requests cancellation of the current worker thread operation.

Namespace:  ESRI.ArcGISExplorer.Threading

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: (


public void CancelAsync()
Visual Basic (Declaration)
Public Sub CancelAsync


Call this method on the UI thread if the BackgroundWorker is currently working and you wish to cancel the work. Calling this method will set the CancellationPending property to true; this property should be regularly checked within the DoWork event handler - if found to be trueTruetruetrue (True in Visual Basic) then the DoWork event handler should exit, terminating the worker thread.

See Also