Hashtable.KeyEquals(Object, Object) Methode
Definition
protected:
virtual bool KeyEquals(System::Object ^ item, System::Object ^ key);
protected virtual bool KeyEquals (object item, object key);
abstract member KeyEquals : obj * obj -> bool
override this.KeyEquals : obj * obj -> bool
Protected Overridable Function KeyEquals (item As Object, key As Object) As Boolean
Parameter
- key
- Object
Der Schlüssel in der Hashtable, der mit item
verglichen werden soll.The key in the Hashtable to compare with item
.
Gibt zurück
true
, wenn item
und key
gleich sind, andernfalls false
.true
if item
and key
are equal; otherwise, false
.
Ausnahmen
Hinweise
Wenn die Hash Tabelle mit einer bestimmten IComparer-Implementierung erstellt wurde, verwendet diese Methode diesen Comparer. Das heißt, Compare (item
key
).If the hash table was created with a specific IComparer implementation, this method uses that comparer; that is, Compare (item
, key
). Andernfalls wird item.Equals(key)
verwendet.Otherwise, it uses item.Equals(key)
.
Bei dieser Methode handelt es sich um einen O(1)
-Vorgang.This method is an O(1)
operation.