Export (0) Print
Expand All

Task.Id Property

Gets a unique ID for this Task instance.

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

public int Id { get; }

Property Value

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

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

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft