Task.CurrentId Property

Returns the unique ID of the currently executing Task.

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


Public Shared ReadOnly Property CurrentId As Nullable(Of Integer)
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.

Version Information


Supported in: 5


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