Udostępnij za pośrednictwem


IRowSet.SetFloat Method

Definition

Overloads

SetFloat(Int32, Single)

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

SetFloat(String, Single)

Sets the designated parameter to the given Java float value.

SetFloat(Int32, Single)

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

[Android.Runtime.Register("setFloat", "(IF)V", "GetSetFloat_IFHandler:Javax.Sql.IRowSetInvoker, 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:Javax.Sql.IRowSetInvoker, 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 an error occurs accessing the database.

Remarks

Sets the designated parameter in this RowSet object's command to the given Java float value. The driver converts this to an SQL REAL value before sending it to the database.

Java documentation for javax.sql.RowSet.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

SetFloat(String, Single)

Sets the designated parameter to the given Java float value.

[Android.Runtime.Register("setFloat", "(Ljava/lang/String;F)V", "GetSetFloat_Ljava_lang_String_FHandler:Javax.Sql.IRowSetInvoker, 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:Javax.Sql.IRowSetInvoker, 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 an error occurs accessing the database.

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 javax.sql.RowSet.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