Assembly : mscorlib (dans mscorlib.dll)
SyntaxeProtected Overridable Function GetHash ( _ key As Object _ ) As Integer
Dim key As Object Dim returnValue As Integer returnValue = Me.GetHash(key)
protected virtual int GetHash ( Object key )
protected: virtual int GetHash ( Object^ key )
protected int GetHash ( Object key )
protected function GetHash ( key : Object ) : int
Paramètres
- key
Object pour lequel un code de hachage doit être retourné.
Valeur de retour
Code de hachage pour key.
NotesSi la table de hachage a été créée avec une implémentation de IHashCodeProvider spécifique, cette méthode utilise le fournisseur de code de hachage ; sinon, elle utilise l'implémentation Object.GetHashCode de key.
Cette méthode est une opération O(1).
Plates-formesWindows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile pour Pocket PC, Windows Mobile pour Smartphone, Windows Server 2003, Windows XP Édition Media Center, Windows XP Professionnel Édition x64, Windows XP SP2, Windows XP Starter Edition
Le .NET Framework ne prend pas en charge toutes les versions de chaque plate-forme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise.
Informations de version
Outils (masquer)
S'enregistrer
Liste des Membres
Qui est en ligne?
FAQ