ModelCollationComparer.GetHashCode 方法 (ModelIdentifier)
用作所提供的 ModelIdentifier 的哈希函数。
命名空间: Microsoft.Data.Schema.SchemaModel
程序集: Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
Public Function GetHashCode ( _
obj As ModelIdentifier _
) As Integer
public int GetHashCode(
ModelIdentifier obj
)
public:
virtual int GetHashCode(
ModelIdentifier^ obj
) sealed
abstract GetHashCode :
obj:ModelIdentifier -> int
override GetHashCode :
obj:ModelIdentifier -> int
public final function GetHashCode(
obj : ModelIdentifier
) : int
参数
返回值
类型:System.Int32
所提供的标识符的 Int32 哈希代码。
实现
IEqualityComparer<T>.GetHashCode(T)
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。