共用方式為


ArraySet.IndexOf(Object) Method

Definition

Returns the index of a value in the set.

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

Parameters

key
Object

The value to search for.

Returns

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

Attributes

Remarks

Returns the index of a value in the set.

Java documentation for android.util.ArraySet.indexOf(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