MockCursor.GetColumnIndexOrThrow(String) Method

Definition

Returns the zero-based index for the given column name, or throws IllegalArgumentException if the column doesn't exist.

[Android.Runtime.Register("getColumnIndexOrThrow", "(Ljava/lang/String;)I", "GetGetColumnIndexOrThrow_Ljava_lang_String_Handler")]
public virtual int GetColumnIndexOrThrow (string? columnName);
[<Android.Runtime.Register("getColumnIndexOrThrow", "(Ljava/lang/String;)I", "GetGetColumnIndexOrThrow_Ljava_lang_String_Handler")>]
abstract member GetColumnIndexOrThrow : string -> int
override this.GetColumnIndexOrThrow : string -> int

Parameters

columnName
String

the name of the target column.

Returns

Implements

Attributes

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