CurrentId Property

Task Parallel System.Threading

Returns the unique ID of the currently executing Task.

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

Syntax

Visual Basic (Declaration)
Public Shared ReadOnly Property CurrentId As Nullable(Of Integer)
C#
public static Nullable<int> CurrentId { get; }

See Also