ProcessThread.Id Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the unique identifier of the thread.

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

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
Available since 1.1
Return to top