TraceEventCache.ThreadId Property


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

Gets a unique identifier for the current managed thread.

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

public string ThreadId { get; }

Property Value

Type: System.String

A string that represents a unique integer identifier for this managed thread.

The thread identifier is the value of the Thread.ManagedThreadId property formatted as a string.

.NET Framework
Available since 2.0
Return to top