Thread.GetHashCode 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳當前執行緒的雜湊碼。
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 屬性。