dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleCommand Class / Cancel Method

In This Topic
    Cancel Method (OracleCommand)
    In This Topic
    Stops execution of OracleCommand methods.
    Public Overrides Sub Cancel() 
    public override void Cancel()

    This thread-safe method allows you to stop query execution. To do this attach an OracleCommand object to connection that is used in operation to halt and invoke Cancel() method in another thread. This method returns without errors, while all stopped executions raise exception "ORA-01013: user requested cancel of current operation".

    For detailed information on how to stop asynchronous execution refer to article Asynchronous Execution.

    This method is available for Oracle server 9 and newer.


    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also