Java.Sql.IPreparedStatement.SetBytes Method
Sets the value of a specified parameter to a supplied array of bytes.

Syntax

[Android.Runtime.Register("setBytes", "(I[B)V", "GetSetBytes_IarrayBHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetBytes (int parameterIndex, byte[] theBytes)

Parameters

parameterIndex
the parameter number index, where the first parameter has index 1.
theBytes
the array of bytes to which the parameter at parameterIndex is set.

Exceptions

TypeReason
Java.Sql.SQLExceptionif a database error happens.

Remarks

Sets the value of a specified parameter to a supplied array of bytes. The array is mapped to a VARBINARY or LONGVARBINARY in the database.

[Android Documentation]

Requirements

Namespace: Java.Sql
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1