Condividi tramite


IPreparedStatement.SetNCharacterStream Method

Definition

Overloads

SetNCharacterStream(Int32, Reader)

Sets the designated parameter to a Reader object.

SetNCharacterStream(Int32, Reader, Int64)

Sets the designated parameter to a Reader object.

SetNCharacterStream(Int32, Reader)

Sets the designated parameter to a Reader object.

[Android.Runtime.Register("setNCharacterStream", "(ILjava/io/Reader;)V", "GetSetNCharacterStream_ILjava_io_Reader_Handler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetNCharacterStream (int parameterIndex, Java.IO.Reader? value);
[<Android.Runtime.Register("setNCharacterStream", "(ILjava/io/Reader;)V", "GetSetNCharacterStream_ILjava_io_Reader_Handler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetNCharacterStream : int * Java.IO.Reader -> unit

Parameters

parameterIndex
Int32

of the first parameter is 1, the second is 2, ...

value
Reader

the parameter value

Attributes

Exceptions

if a database error happens.

Remarks

Sets the designated parameter to a Reader object. The Reader reads the data till end-of-file is reached. The driver does the necessary conversion from Java character format to the national character set in the database.

<B>Note:</B> This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.

<B>Note:</B> Consult your JDBC driver documentation to determine if it might be more efficient to use a version of setNCharacterStream which takes a length parameter.

Added in 1.6.

Java documentation for java.sql.PreparedStatement.setNCharacterStream(int, java.io.Reader).

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

SetNCharacterStream(Int32, Reader, Int64)

Sets the designated parameter to a Reader object.

[Android.Runtime.Register("setNCharacterStream", "(ILjava/io/Reader;J)V", "GetSetNCharacterStream_ILjava_io_Reader_JHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetNCharacterStream (int parameterIndex, Java.IO.Reader? value, long length);
[<Android.Runtime.Register("setNCharacterStream", "(ILjava/io/Reader;J)V", "GetSetNCharacterStream_ILjava_io_Reader_JHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetNCharacterStream : int * Java.IO.Reader * int64 -> unit

Parameters

parameterIndex
Int32

of the first parameter is 1, the second is 2, ...

value
Reader

the parameter value

length
Int64

the number of characters in the parameter data.

Attributes

Exceptions

if a database error happens.

Remarks

Sets the designated parameter to a Reader object. The Reader reads the data till end-of-file is reached. The driver does the necessary conversion from Java character format to the national character set in the database.

Added in 1.6.

Java documentation for java.sql.PreparedStatement.setNCharacterStream(int, java.io.Reader, long).

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