Poznámka:
Přístup k této stránce vyžaduje autorizaci. Můžete se zkusit přihlásit nebo změnit adresáře.
Přístup k této stránce vyžaduje autorizaci. Můžete zkusit změnit adresáře.
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at 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