Share via


Hashtable.ContainsKey(Object) Method

Definition

Tests if the specified object is a key in this hashtable.

[Android.Runtime.Register("containsKey", "(Ljava/lang/Object;)Z", "GetContainsKey_Ljava_lang_Object_Handler")]
public virtual bool ContainsKey (Java.Lang.Object? key);
[<Android.Runtime.Register("containsKey", "(Ljava/lang/Object;)Z", "GetContainsKey_Ljava_lang_Object_Handler")>]
abstract member ContainsKey : Java.Lang.Object -> bool
override this.ContainsKey : Java.Lang.Object -> bool

Parameters

key
Object

possible key

Returns

true if and only if the specified object is a key in this hashtable, as determined by the equals method; false otherwise.

Implements

Attributes

Remarks

Tests if the specified object is a key in this hashtable.

Java documentation for java.util.Hashtable.containsKey(java.lang.Object).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also