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::TryTransitionToError Method.
Indicates whether the specified error code can modify the internal error state.
Syntax
bool TryTransitionToError(
const HRESULT error
);
Parameters
error
An error HRESULT.
Return Value
true if the internal error state was changed; otherwise, false.
Remarks
This operation modifies the error state only if the error state is already set to S_OK. This operation has no effect if the error state is already error, cancelled, completed, or closed.
Requirements
Header: async.h
Namespace: Microsoft::WRL