Udostępnij za pośrednictwem


IStatement.Cancel Method

Definition

Cancels this Statement object if both the DBMS and driver support aborting an SQL statement.

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

Exceptions

if an error occurs accessing the database.

Remarks

Cancels this Statement object if both the DBMS and driver support aborting an SQL statement. This method can be used by one thread to cancel a statement that is being executed by another thread.

Java documentation for java.sql.Statement.cancel().

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