Gets a value that represents an argument passed in to the DoWork event.

Namespace:  ESRI.ArcGISExplorer.Threading

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

Syntax

C#
public Object Argument { get; }
Visual Basic (Declaration)
Public ReadOnly Property Argument As Object

Field Value

The argument passed in to DoWork; this may contain any type of data, or may be nullNothingnullptra null reference (Nothing in Visual Basic) if no argument was set.

Remarks

If data needs to be passed from the UI thread to the worker thread, this can be accomplished by passing information as a parameter into the overloaded RunWorkerAsync(Object) method on the UI thread. This information is then accessible in the worker thread from this property.

See Also