IResultSet.GetString Method

Definition

Overloads

GetString(String)

Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.

GetString(Int32)

Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.

GetString(String)

Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.

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

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 value; if the value is SQL NULL, the value returned is null

Attributes

Exceptions

if a database error happens.

Remarks

Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.

Java documentation for java.sql.ResultSet.getString(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

GetString(Int32)

Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.

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

Parameters

columnIndex
Int32

the first column is 1, the second is 2, ...

Returns

the column value; if the value is SQL NULL, the value returned is null

Attributes

Exceptions

if a database error happens.

Remarks

Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.

Java documentation for java.sql.ResultSet.getString(int).

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