Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SystemUtils.ThreadId Property

Gets the thread id for the current thread. Use thread name is available, otherwise use CurrentThread.GetHashCode() for .NET 1.0/1.1 and CurrentThread.ManagedThreadId otherwise.

[Visual Basic]
Public Shared ReadOnly Property ThreadId() As String
   Public Get
   End Get
End Property
[C#]
public static string ThreadId { public get; }

Property Value

The thread id.

See Also

SystemUtils Class | Spring.Util Namespace