共用方式為


IResultSet.GetCharacterStream Method

Definition

Overloads

GetCharacterStream(Int32)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object.

GetCharacterStream(String)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object.

GetCharacterStream(Int32)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object.

[Android.Runtime.Register("getCharacterStream", "(I)Ljava/io/Reader;", "GetGetCharacterStream_IHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.IO.Reader? GetCharacterStream (int columnIndex);
[<Android.Runtime.Register("getCharacterStream", "(I)Ljava/io/Reader;", "GetGetCharacterStream_IHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetCharacterStream : int -> Java.IO.Reader

Parameters

columnIndex
Int32

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

Returns

a java.io.Reader object that contains the column value; if the value is SQL NULL, the value returned is null in the Java programming language.

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 java.io.Reader object.

Added in 1.2.

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

See also

Applies to

GetCharacterStream(String)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object.

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

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

a java.io.Reader object that contains the column value; if the value is SQL NULL, the value returned is null in the Java programming language

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 java.io.Reader object.

Added in 1.2.

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