Share via


IResultSet.FindColumn(String) Method

Definition

Maps the given ResultSet column label to its ResultSet column index.

[Android.Runtime.Register("findColumn", "(Ljava/lang/String;)I", "GetFindColumn_Ljava_lang_String_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int FindColumn (string? columnLabel);
[<Android.Runtime.Register("findColumn", "(Ljava/lang/String;)I", "GetFindColumn_Ljava_lang_String_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member FindColumn : string -> int

Parameters

columnLabel
String

the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column

Returns

the column index of the given column name

Attributes

Exceptions

if a database error happens.

Remarks

Maps the given ResultSet column label to its ResultSet column index.

Java documentation for java.sql.ResultSet.findColumn(java.lang.String).

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