Task.CurrentId Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Returns the unique ID of the currently executing Task.

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

Syntax

'Declaration
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

Silverlight

Supported in: 5

Platforms

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