Microsoft Information Protection SDK - C++ 1.17
API Reference Documentation for C++
Loading...
Searching...
No Matches
AsyncControl Class Referenceabstract

Class used to cancel async operation. More...

#include <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. This feature is dependent on the task dispatcher delegate (.
 

Detailed Description

Class used to cancel async operation.

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: