Skip to content

Latest commit

 

History

History
61 lines (54 loc) · 1.16 KB

File metadata and controls

61 lines (54 loc) · 1.16 KB
title AsyncBase::Cancel Method | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic reference
f1_keywords
async/Microsoft::WRL::AsyncBase::Cancel
dev_langs
C++
helpviewer_keywords
Cancel method
ms.assetid 8bfebc63-3848-4629-bc89-aa538ed7e7ad
caps.latest.revision 3
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
ru-ru
zh-cn
zh-tw
translation.priority.mt
cs-cz
pl-pl
pt-br
tr-tr

AsyncBase::Cancel Method

Cancels an asynchronous operation.

Syntax

STDMETHOD(  
   Cancel  
)(void);  

Return Value

By default, always returns S_OK.

Remarks

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.

Requirements

Header: async.h

Namespace: Microsoft::WRL

See Also

AsyncBase Class