Share via


IResultSet.GetNString Method

Definition

Overloads

GetNString(Int32)

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

GetNString(String)

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

GetNString(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("getNString", "(I)Ljava/lang/String;", "GetGetNString_IHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetNString (int columnIndex);
[<Android.Runtime.Register("getNString", "(I)Ljava/lang/String;", "GetGetNString_IHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetNString : 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

Remarks

Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language. It is intended for use when accessing NCHAR,NVARCHAR and LONGNVARCHAR columns.

Added in 1.6.

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

GetNString(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("getNString", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetNString_Ljava_lang_String_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetNString (string? columnLabel);
[<Android.Runtime.Register("getNString", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetNString_Ljava_lang_String_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetNString : 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

Remarks

Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language. It is intended for use when accessing NCHAR,NVARCHAR and LONGNVARCHAR columns.

Added in 1.6.

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