Compartilhar via


ISQLOutput.WriteNString(String) Method

Definition

Writes the next attribute to the stream as a String in the Java programming language.

[Android.Runtime.Register("writeNString", "(Ljava/lang/String;)V", "GetWriteNString_Ljava_lang_String_Handler:Java.Sql.ISQLOutputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void WriteNString (string? x);
[<Android.Runtime.Register("writeNString", "(Ljava/lang/String;)V", "GetWriteNString_Ljava_lang_String_Handler:Java.Sql.ISQLOutputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member WriteNString : string -> unit

Parameters

x
String

the value to pass to the database

Attributes

Exceptions

if a database error occurs.

Remarks

Writes the next attribute to the stream as a String in the Java programming language. The driver converts this to a SQL NCHAR or NVARCHAR or LONGNVARCHAR value (depending on the argument's size relative to the driver's limits on NVARCHAR values) when it sends it to the stream.

Added in 1.6.

Java documentation for java.sql.SQLOutput.writeNString(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