ModelCollationComparer.GetHashCode 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| GetHashCode(ObjectIdentifier) |
获取与 Equals(ObjectIdentifier, ObjectIdentifier) 此比较器方法兼容的对象的 Hashcode |
| GetHashCode(IList<String>) |
获取与 Equals(IList<String>, IList<String>) 此比较器方法兼容的对象的 Hashcode |
| GetHashCode(String) |
获取与 Equals(String, String) 此比较器方法兼容的对象的 Hashcode |
GetHashCode(ObjectIdentifier)
获取与 Equals(ObjectIdentifier, ObjectIdentifier) 此比较器方法兼容的对象的 Hashcode
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
要为其获取哈希码的对象
返回
hashcode
实现
适用于
GetHashCode(IList<String>)
获取与 Equals(IList<String>, IList<String>) 此比较器方法兼容的对象的 Hashcode
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
参数
返回
hashcode
实现
适用于
GetHashCode(String)
获取与 Equals(String, String) 此比较器方法兼容的对象的 Hashcode
public abstract int GetHashCode(string obj);
override this.GetHashCode : string -> int
Public MustOverride Function GetHashCode (obj As String) As Integer
参数
- obj
- String
要为其获取哈希码的对象
返回
hashcode