ManagementBaseObject.GetHashCode 方法

定义

充当特定类型的哈希函数,适用于哈希算法以及哈希表之类的数据结构中。Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

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

返回

当前对象的哈希代码。A hash code for the current object.

注解

.NET Framework 安全性.NET Framework Security

对直接调用方的完全信任。Full trust for the immediate caller. 此成员不能由部分信任的代码使用。This member cannot be used by partially trusted code. 有关详细信息,请参阅从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

适用于