Share via


ArrayMap.ContainsKey(Object) Method

Definition

Check whether a key exists in the array.

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

Parameters

key
Object

The key to search for.

Returns

Returns true if the key exists, else false.

Implements

Attributes

Remarks

Check whether a key exists in the array.

Java documentation for android.util.ArrayMap.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