Requests cancellation of the current worker thread operation.

Namespace:  ESRI.ArcGISExplorer.Threading
Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.900 (2.0.0.900)

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

Relate Topics:
  Dispose Method
  MemberwiseClone Method
  ReportProgress Method
  RunWorkerAsync Method
Created by Atop CHM to web converter,© 2009 all right reserved.