IPreparedStatement.SetFloat(Int32, Single) Method

Definition

Sets the designated parameter to the given Java float value.

[Android.Runtime.Register("setFloat", "(IF)V", "GetSetFloat_IFHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetFloat (int parameterIndex, float x);
[<Android.Runtime.Register("setFloat", "(IF)V", "GetSetFloat_IFHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetFloat : int * single -> unit

Parameters

parameterIndex
Int32

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

x
Single

the parameter value

Attributes

Exceptions

if a database error happens.

Remarks

Sets the designated parameter to the given Java float value. The driver converts this to an SQL REAL value when it sends it to the database.

Java documentation for java.sql.PreparedStatement.setFloat(int, float).

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