--- title: "AsyncBase::Close 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::Close" dev_langs: - "C++" helpviewer_keywords: - "Close method" ms.assetid: a52b1124-754b-4393-b491-64aae0c22f1c 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::Close Method Closes the asynchronous operation. ## Syntax ``` STDMETHOD( Close )(void) override; ``` ## Return Value S_OK if the operation closes or is already closed; otherwise, E_ILLEGAL_STATE_CHANGE. ## Remarks Close() is a default implementation of IAsyncInfo::Close, and does no actual work. To actually close an asynchronous operation, override the OnClose() pure virtual method. ## Requirements **Header:** async.h **Namespace:** Microsoft::WRL ## See Also [AsyncBase Class](../windows/asyncbase-class.md)