Task.CurrentId Property

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.

Silverlight

Supported in: 5

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

Community Additions

ADD
Show: