Requests cancellation of the current worker thread operation.

Namespace:  ESRI.ArcGISExplorer.Threading

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

Syntax

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

Remarks

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