ModelCollationComparer.GetHashCode 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetHashCode(ObjectIdentifier) |
會取得一個與此比較器方法相容 Equals(ObjectIdentifier, ObjectIdentifier) 的物件雜湊碼 |
| GetHashCode(IList<String>) |
會取得一個與此比較器方法相容 Equals(IList<String>, IList<String>) 的物件雜湊碼 |
| GetHashCode(String) |
會取得一個與此比較器方法相容 Equals(String, String) 的物件雜湊碼 |
GetHashCode(ObjectIdentifier)
會取得一個與此比較器方法相容 Equals(ObjectIdentifier, ObjectIdentifier) 的物件雜湊碼
public abstract int GetHashCode(Microsoft.SqlServer.Dac.Model.ObjectIdentifier obj);
override this.GetHashCode : Microsoft.SqlServer.Dac.Model.ObjectIdentifier -> int
Public MustOverride Function GetHashCode (obj As ObjectIdentifier) As Integer
參數
- obj
- ObjectIdentifier
要取得雜湊碼的物件
傳回
雜湊碼
實作
適用於
GetHashCode(IList<String>)
會取得一個與此比較器方法相容 Equals(IList<String>, IList<String>) 的物件雜湊碼
public abstract int GetHashCode(System.Collections.Generic.IList<string> obj);
override this.GetHashCode : System.Collections.Generic.IList<string> -> int
Public MustOverride Function GetHashCode (obj As IList(Of String)) As Integer
參數
傳回
雜湊碼
實作
適用於
GetHashCode(String)
會取得一個與此比較器方法相容 Equals(String, String) 的物件雜湊碼
public abstract int GetHashCode(string obj);
override this.GetHashCode : string -> int
Public MustOverride Function GetHashCode (obj As String) As Integer
參數
- obj
- String
要取得雜湊碼的物件
傳回
雜湊碼