IPAddress.GetHashCode 方法

定義

傳回 IP 位址的雜湊值 (Hash Value)。

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

傳回

整數雜湊值。

備註

方法 GetHashCode 會傳回IP位址的哈希碼。 此值可以當做哈希表中的索引鍵使用。

適用於