Vector3D.GetHashCode 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會得到這個 Vector3D 結構的雜湊碼。
public:
override int GetHashCode();
public override int GetHashCode();
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer
傳回
此結構的 Vector3D 雜湊碼。
範例
以下範例說明如何取得結構的 Vector3D 雜湊碼。
// 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()