System.Net.URLClient.TURLResponse.DoCancel

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DoCancel: Boolean; override;

C++

virtual bool __fastcall DoCancel();

Properties

Type Visibility Source Unit Parent
function protected
System.Net.URLClient.pas
System.Net.URLClient.hpp
System.Net.URLClient TURLResponse

Description

Implements the cancellation of the current asynchronous operation.

System.Net.URLClient.TURLResponse.DoCancel inherits from System.Classes.TBaseAsyncResult.DoCancel. All content below this line refers to System.Classes.TBaseAsyncResult.DoCancel.

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