| title | AsyncBase::Cancel Method | Microsoft Docs | |
|---|---|---|
| ms.custom | ||
| ms.date | 11/04/2016 | |
| ms.reviewer | ||
| ms.suite | ||
| ms.technology |
|
|
| ms.tgt_pltfrm | ||
| ms.topic | reference | |
| f1_keywords |
|
|
| dev_langs |
|
|
| helpviewer_keywords |
|
|
| ms.assetid | 8bfebc63-3848-4629-bc89-aa538ed7e7ad | |
| caps.latest.revision | 3 | |
| author | mikeblome | |
| ms.author | mblome | |
| manager | ghogen |
Cancels an asynchronous operation.
STDMETHOD(
Cancel
)(void);
By default, always returns S_OK.
Cancel() is a default implementation of IAsyncInfo::Cancel, and does no actual work. To actually cancel an asynchronous operation, override the OnCancel() pure virtual method.
Header: async.h
Namespace: Microsoft::WRL