Occurs on the UI thread after the DoWork operation has returned.

Namespace:  ESRI.ArcGISExplorer.Threading

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

Syntax

C#
public event RunWorkerCompletedEventHandler RunWorkerCompleted
Visual Basic (Declaration)
Public Event RunWorkerCompleted As RunWorkerCompletedEventHandler

Remarks

This event occurs on the UI thread.

This event will be raised when the BackgroundWorkers DoWork event handler returns, either when it has completed successfully, has been canceled, or has raised an exception.If you wish to perform work in the UI thread after the DoWork event is finished, then handle this event.

Any information produced by the DoWork event and intended for use back on the UI thread should be assigned to the Result property in the DoWork event in the worker thread; this can be retrieved from the Result property back on the UI thread.

If the CancelAsync()()() method was called, then the Cancelled property will be trueTruetruetrue (True in Visual Basic).

Check the Error property to see if the DoWork event threw an exception and decide how to handle this back in the user interface; this property will be set automatically if the DoWork event threw an exception which was not handled inside DoWork.

See Also