ProcessThread.Id Property  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the unique identifier of the thread.
public:
 property int Id { int get(); };public int Id { get; }member this.Id : intPublic ReadOnly Property Id As IntegerProperty Value
The unique identifier associated with a specific thread.
Remarks
The operating system reuses thread identification numbers, which identify threads only during their lifetimes.