Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Indicates whether the specified error code can modify the internal error state.
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