Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
Loading...
Searching...
No Matches
AsyncControl Class Referenceabstract

Class used to cancel async operation. More...

#include <src/api/mip/common_types.h>

Public Member Functions

virtual bool Cancel ()=0
 Calling cancel will result in a attempt to cancel the task, in case of success the appropriate onFailure callback will be called with mip::OperationCancelledError.
 

Detailed Description

Class used to cancel async operation.

Definition at line 752 of file common_types.h.

Member Function Documentation

◆ Cancel()

virtual bool AsyncControl::Cancel ( )
pure virtual

Calling cancel will result in a attempt to cancel the task, in case of success the appropriate onFailure callback will be called with mip::OperationCancelledError.

This feature is dependent on the task dispatcher delegate (

See also
mip::TaskDispatcherDelegate),
Returns
false if cancel signal cannot be dispatched, true otherwise.
Note
Do not hold a strong reference to an AsyncControl object in a task completion block.

The documentation for this class was generated from the following file: