title AsyncBase::ErrorCode 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::ErrorCode dev_langs C++ helpviewer_keywords ErrorCode method ms.assetid 3f5f0f69-d60a-4a67-8cc6-a55fdc89a192 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::ErrorCode Method Retrieves the error code for the current asynchronous operation. Syntax inline void ErrorCode( HRESULT *error ); Parameters error The location where this operation stores the current error code. Remarks This operation is thread-safe. Requirements Header: async.h Namespace: Microsoft::WRL See Also AsyncBase Class