System.Threading.Thread.GetHashCode Method

Returns a hash code for the current thread.

Syntax

[System.Runtime.InteropServices.ComVisible(false)]
public override int GetHashCode ()

Returns

An integer hash code value.

Remarks

The hash code is not guaranteed to be unique. Use the Thread.ManagedThreadId property if you need a unique identifier for a managed thread.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0