Share via


IRowSet.SetBytes Method

Definition

Overloads

SetBytes(Int32, Byte[])

Sets the designated parameter in this RowSet object's command to the given Java array of byte values.

SetBytes(String, Byte[])

Sets the designated parameter to the given Java array of bytes.

SetBytes(Int32, Byte[])

Sets the designated parameter in this RowSet object's command to the given Java array of byte values.

[Android.Runtime.Register("setBytes", "(I[B)V", "GetSetBytes_IarrayBHandler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetBytes (int parameterIndex, byte[]? x);
[<Android.Runtime.Register("setBytes", "(I[B)V", "GetSetBytes_IarrayBHandler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetBytes : int * byte[] -> unit

Parameters

parameterIndex
Int32

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

x
Byte[]

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 array of byte values. Before sending it to the database, the driver converts this to an SQL VARBINARY or LONGVARBINARY value, depending on the argument's size relative to the driver's limits on VARBINARY values.

Java documentation for javax.sql.RowSet.setBytes(int, byte[]).

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

SetBytes(String, Byte[])

Sets the designated parameter to the given Java array of bytes.

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

Parameters

parameterName
String

the name of the parameter

x
Byte[]

the parameter value

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

Sets the designated parameter to the given Java array of bytes. The driver converts this to an SQL VARBINARY or LONGVARBINARY (depending on the argument's size relative to the driver's limits on VARBINARY values) when it sends it to the database.

Added in 1.4.

Java documentation for javax.sql.RowSet.setBytes(java.lang.String, byte[]).

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