Share via


ICallableStatement.SetFloat(String, Single) Method

Definition

Sets the designated parameter to the given Java float value.

[Android.Runtime.Register("setFloat", "(Ljava/lang/String;F)V", "GetSetFloat_Ljava_lang_String_FHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetFloat (string? parameterName, float x);
[<Android.Runtime.Register("setFloat", "(Ljava/lang/String;F)V", "GetSetFloat_Ljava_lang_String_FHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetFloat : string * single -> unit

Parameters

parameterName
String

the name of the parameter

x
Single

the parameter value

Attributes

Exceptions

if a database error occurs.

Remarks

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

Added in 1.4.

Java documentation for java.sql.CallableStatement.setFloat(java.lang.String, 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