共用方式為


Thread.GetHashCode 方法

定義

回傳當前執行緒的雜湊碼。

public:
 override int GetHashCode();
public override int GetHashCode();
[System.Runtime.InteropServices.ComVisible(false)]
public override int GetHashCode();
override this.GetHashCode : unit -> int
[<System.Runtime.InteropServices.ComVisible(false)>]
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer

傳回

一個整數雜湊碼值。

屬性

備註

雜湊碼並不保證是唯一的。 如果你需要管理執行緒的唯一識別碼,可以使用這個 ManagedThreadId 屬性。

適用於