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()

適用於