IRowSet.SetString Method

Definition

Overloads

SetString(String, String)

Sets the designated parameter to the given Java String value.

SetString(Int32, String)

Sets the designated parameter in this RowSet object's command to the given Java String value.

SetString(String, String)

Sets the designated parameter to the given Java String value.

[Android.Runtime.Register("setString", "(Ljava/lang/String;Ljava/lang/String;)V", "GetSetString_Ljava_lang_String_Ljava_lang_String_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetString (string? parameterName, string? x);
[<Android.Runtime.Register("setString", "(Ljava/lang/String;Ljava/lang/String;)V", "GetSetString_Ljava_lang_String_Ljava_lang_String_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetString : string * string -> unit

Parameters

parameterName
String

the name of the parameter

x
String

the parameter value

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

Sets the designated parameter to the given Java String value. The driver converts this to an SQL VARCHAR or LONGVARCHAR value (depending on the argument's size relative to the driver's limits on VARCHAR values) when it sends it to the database.

Added in 1.4.

Java documentation for javax.sql.RowSet.setString(java.lang.String, 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

SetString(Int32, String)

Sets the designated parameter in this RowSet object's command to the given Java String value.

[Android.Runtime.Register("setString", "(ILjava/lang/String;)V", "GetSetString_ILjava_lang_String_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetString (int parameterIndex, string? x);
[<Android.Runtime.Register("setString", "(ILjava/lang/String;)V", "GetSetString_ILjava_lang_String_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetString : int * string -> unit

Parameters

parameterIndex
Int32

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

x
String

the parameter value

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

Sets the designated parameter in this RowSet object's command to the given Java String value. Before sending it to the database, the driver converts this to an SQL VARCHAR or LONGVARCHAR value, depending on the argument's size relative to the driver's limits on VARCHAR values.

Java documentation for javax.sql.RowSet.setString(int, 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