| title | AsyncBase::TryTransitionToError Method | Microsoft Docs | ||
|---|---|---|---|
| ms.custom | |||
| ms.date | 11/04/2016 | ||
| ms.reviewer | |||
| ms.suite | |||
| ms.technology |
|
||
| ms.tgt_pltfrm | |||
| ms.topic | reference | ||
| f1_keywords |
|
||
| dev_langs |
|
||
| helpviewer_keywords |
|
||
| ms.assetid | f6d11c25-1ce3-43f9-af1c-97c4dc0f6f0f | ||
| caps.latest.revision | 3 | ||
| author | mikeblome | ||
| ms.author | mblome | ||
| manager | ghogen | ||
| ms.workload |
|
Indicates whether the specified error code can modify the internal error state.
bool TryTransitionToError(
const HRESULT error
);
error
An error HRESULT.
true if the internal error state was changed; otherwise, false.
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.
Header: async.h
Namespace: Microsoft::WRL