GetHashCode 方法

返回此对象的哈希代码。

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Overrides Function GetHashCode As Integer
用法
Dim instance As ScriptOption
Dim returnValue As Integer

returnValue = instance.GetHashCode()
public override int GetHashCode()
public:
virtual int GetHashCode() override
abstract GetHashCode : unit -> int 
override GetHashCode : unit -> int 
public override function GetHashCode() : int

返回值

类型:System. . :: . .Int32
一个指定哈希代码的 Int32 值。

注释

This method serves as a hash function for the object. It is suitable for use in hashing algorithms and data structures like a hash table.

示例

脚本撰写