Share via


ArrayMap.IndexOfKey(Object) Method

Definition

Returns the index of a key in the set.

[Android.Runtime.Register("indexOfKey", "(Ljava/lang/Object;)I", "")]
public int IndexOfKey (Java.Lang.Object? key);
[<Android.Runtime.Register("indexOfKey", "(Ljava/lang/Object;)I", "")>]
member this.IndexOfKey : Java.Lang.Object -> int

Parameters

key
Object

The key to search for.

Returns

Returns the index of the key if it exists, else a negative integer.

Attributes

Remarks

Returns the index of a key in the set.

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