dotConnect for MongoDB Documentation
Devart.Data.MongoDB Namespace / MongoDBCommand Class / Cancel Method

On this page
    Cancel Method (MongoDBCommand)
    On this page
    Attempts to cancel the execution of the command. In the SQL engine mode it stops the running statement, and the reader throws MongoDBException "The command was canceled". In the native mode it does nothing; use CommandTimeout to limit the execution time.
    Syntax
    'Declaration
     
    Public Overrides Sub Cancel() 
    public override void Cancel()
    See Also