IPreparedStatement.ClearParameters Method

Definition

Clears the current parameter values immediately.

[Android.Runtime.Register("clearParameters", "()V", "GetClearParametersHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void ClearParameters ();
[<Android.Runtime.Register("clearParameters", "()V", "GetClearParametersHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ClearParameters : unit -> unit
Attributes

Exceptions

if a database error happens.

Remarks

Clears the current parameter values immediately.

In general, parameter values remain in force for repeated use of a statement. Setting a parameter value automatically clears its previous value. However, in some cases it is useful to immediately release the resources used by the current parameter values; this can be done by calling the method clearParameters.

Java documentation for java.sql.PreparedStatement.clearParameters().

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