Hashtable.KeyEquals(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
protected:
virtual bool KeyEquals(System::Object ^ item, System::Object ^ key);
protected virtual bool KeyEquals (object item, 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
Parameters
Returns
true
if item
and key
are equal; otherwise, false
.
Exceptions
Remarks
If the hash table was created with a specific IComparer implementation, this method uses that comparer; that is, Compare (item
, key
). Otherwise, it uses item.Equals(key)
.
This method is an O(1)
operation.
Applies to
See also
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.