Share via


ICallableStatement.SetNCharacterStream Method

Definition

Overloads

SetNCharacterStream(String, Reader)

Sets the designated parameter to a Reader object.

SetNCharacterStream(String, Reader, Int64)

Sets the designated parameter to a Reader object.

SetNCharacterStream(String, Reader)

Sets the designated parameter to a Reader object.

[Android.Runtime.Register("setNCharacterStream", "(Ljava/lang/String;Ljava/io/Reader;)V", "GetSetNCharacterStream_Ljava_lang_String_Ljava_io_Reader_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetNCharacterStream (string? parameterName, Java.IO.Reader? value);
[<Android.Runtime.Register("setNCharacterStream", "(Ljava/lang/String;Ljava/io/Reader;)V", "GetSetNCharacterStream_Ljava_lang_String_Ljava_io_Reader_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetNCharacterStream : string * Java.IO.Reader -> unit

Parameters

parameterName
String

the name of the parameter

value
Reader

the parameter value

Attributes

Exceptions

if a database error occurs

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.CallableStatement.setNCharacterStream(java.lang.String, 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(String, Reader, Int64)

Sets the designated parameter to a Reader object.

[Android.Runtime.Register("setNCharacterStream", "(Ljava/lang/String;Ljava/io/Reader;J)V", "GetSetNCharacterStream_Ljava_lang_String_Ljava_io_Reader_JHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetNCharacterStream (string? parameterName, Java.IO.Reader? value, long length);
[<Android.Runtime.Register("setNCharacterStream", "(Ljava/lang/String;Ljava/io/Reader;J)V", "GetSetNCharacterStream_Ljava_lang_String_Ljava_io_Reader_JHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetNCharacterStream : string * Java.IO.Reader * int64 -> unit

Parameters

parameterName
String

the name of the parameter to be set

value
Reader

the parameter value

length
Int64

the number of characters in the parameter data.

Attributes

Exceptions

if a database error occurs

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.CallableStatement.setNCharacterStream(java.lang.String, 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