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