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.
    Syntax
    'Declaration
     
    Public Overrides Sub Cancel() 
    public override void Cancel()
    Remarks

    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.

    See Also