_Type.GetHashCode _Type.GetHashCode _Type.GetHashCode _Type.GetHashCode Method

定義

為 COM 物件提供與版本無關的 GetHashCode() 方法之存取權。Provides COM objects with version-independent access to the GetHashCode() method.

public:
 int GetHashCode();
public int GetHashCode ();
abstract member GetHashCode : unit -> int
Public Function GetHashCode () As Integer

傳回

Int32,包含這個執行個體的雜湊碼。An Int32 containing the hash code for this instance.

備註

這個方法會從 unmanaged 程式碼,是用於存取 managed 類別,並不會呼叫從 managed 程式碼。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.GetHashCode 方法The Type.GetHashCode method.

適用於