Task.Id Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a unique ID for this Task instance.

Namespace:  System.Threading.Tasks
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public ReadOnly Property Id As Integer
public int Id { get; }

Property Value

Type: System.Int32
An integer that was assigned by the system to this task instance.

Remarks

Task IDs are assigned on-demand and do not necessarily represent the order in the which Task instances were created.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.