CurrentId Property

Task.CurrentId Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns the unique ID of the currently executing Task.

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

public static Nullable<int> CurrentId { get; }

Property Value

Type: System.Nullable<Int32>
An integer that was assigned by the system to the currently-executing task.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft