Vector3D.GetHashCode 方法

定義

取得這個 Vector3D 結構的雜湊程式碼。Gets a hash code for this Vector3D structure.

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

傳回

這個 Vector3D 結構的雜湊程式碼。A hash code for this Vector3D structure.

範例

下列範例顯示如何取得Vector3D結構的雜湊碼。The following example shows how to get the hashcode of a Vector3D structure.

// Gets the hashcode of a Vector3D structure

Vector3D vector1 = new Vector3D(20, 30, 40);
int vectorHashCode;

vectorHashCode = vector1.GetHashCode();
' Gets the hashcode of a Vector3D structure

Dim vector1 As New Vector3D(20, 30, 40)
Dim vectorHashCode As Integer

vectorHashCode = vector1.GetHashCode()

適用於