Language

JavaDictionary<K,V>.ContainsKey(K) Method

Definition

Checks whether the Java map contains a key.

public bool ContainsKey(K key);
abstract member ContainsKey : 'K -> bool
override this.ContainsKey : 'K -> bool

Parameters

key
K

The key to find.

Returns

true if the map contains the key; otherwise, false.

Implements

Remarks

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