Export (0) Print
Expand All

ProcessThread.Id Property

Gets the unique identifier of the thread.

Namespace:  System.Diagnostics
Assembly:  System (in System.dll)

[MonitoringDescriptionAttribute("ThreadId")]
public int Id { get; }

Property Value

Type: System.Int32
The unique identifier associated with a specific thread.

The operating system reuses thread identification numbers, which identify threads only during their lifetimes.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft