Id Property

Task Parallel System.Threading

Gets a unique ID for this Task instance.

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

Syntax

Visual Basic (Declaration)
Public ReadOnly Property Id As Integer
C#
public int Id { get; }

Remarks

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

See Also