StringInfo.GetHashCode 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
計算當前 StringInfo 物件值的雜湊碼。
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
傳回
基於此 StringInfo 物件字串值的 32 位元有號整數雜湊碼。
- 屬性
備註
的 GetHashCode 行為取決於其實作,而實作可能會在不同版本的共通語言執行環境間有所變化。 這可能會發生以提升 的 GetHashCode效能。 為了使行為為 GetHashCode 常數,應用程式應以已知永不更改的實作覆蓋執行 GetHashCode 時實作。