Windows Dev Center

Thread.ManagedThreadId Property

Gets a unique identifier for the current, managed thread.

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

public int ManagedThreadId { get; }

Property Value

Type: System.Int32
A unique identifier for this managed thread.

The value of the ManagedThreadId property does not vary over time, even if unmanaged code that hosts the common language runtime implements the thread as a fiber.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft