OperationInfo.GetHashCode 方法

定义

返回当前 OperationInfo 的哈希代码。

public:
 override int GetHashCode();
public override int GetHashCode ();
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer

返回

Int32

此实例的哈希代码。

示例

下面的示例演示如何使用 GetHashCode 方法。

OperationInfo info = new OperationInfo();
info.Name = "ProcessData";
int code = info.GetHashCode();
Dim info As New OperationInfo()
info.Name = "ProcessData"
Dim code = info.GetHashCode()

适用于