HashCode.GetHashCode Méthode

Définition

Attention

HashCode is a mutable struct and should not be compared with other HashCodes. Use ToHashCode to retrieve the computed hash code.

Cette méthode n’est pas prise en charge et ne doit pas être appelée.

public:
 override int GetHashCode();
[System.Obsolete("HashCode is a mutable struct and should not be compared with other HashCodes. Use ToHashCode to retrieve the computed hash code.", true)]
public override int GetHashCode ();
[<System.Obsolete("HashCode is a mutable struct and should not be compared with other HashCodes. Use ToHashCode to retrieve the computed hash code.", true)>]
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer

Retours

Int32

Cette méthode lève toujours un NotSupportedException.

Attributs

Exceptions

Toujours levé quand cette méthode est appelée.

S’applique à