_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

返回

包含此实例的哈希代码的 Int32An Int32 containing the hash code for this instance.

注解

此方法用于访问托管类到从非托管代码,不应从托管代码调用。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.

适用于