System.Classes.TBaseAsyncResult.DoCancel

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DoCancel: Boolean; virtual;

C++

virtual bool __fastcall DoCancel();

Properties

Type Visibility Source Unit Parent
function protected
System.Classes.pas
System.Classes.hpp
System.Classes TBaseAsyncResult

Description

Implements the cancellation of the current asynchronous operation.

If the operation can be canceled, DoCancel returns True. When canceling the asynchronous operation, do any additional processing.

This method can be overridden by a descendant/child class to implement canceling the current asynchronous operation. By default, all asynchronous operations can not be canceled. If descendants support canceling asynchronous tasks, they must override this behavior and do the required processing.

See Also