> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameUiShowErrorDialogResult

> XGameUiShowErrorDialogResult

# XGameUiShowErrorDialogResult

取得 [XGameUiShowErrorDialogAsync](/zh-TW/reference/system/xgameui/functions/xgameuishowerrordialogasync) 呼叫的結果。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
HRESULT XGameUiShowErrorDialogResult(  
         XAsyncBlock* async  
)  
```

<a id="parametersSection" />

### 參數

*async*   \_In\_\
類型：[XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock)\*

傳遞至 [XGameUiShowErrorDialogAsync](/zh-TW/reference/system/xgameui/functions/xgameuishowerrordialogasync) 之 [XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock) 物件的指標。

<a id="retvalSection" />

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

<a id="remarksSection" />

## 備註

一般而言，您會在 [XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock) 中將此函式指定為 [XGameUiShowErrorDialogAsync](/zh-TW/reference/system/xgameui/functions/xgameuishowerrordialogasync) 的回呼函式。

您也可以在 `XGameUiShowErrorDialogAsync` 完成後呼叫此函式來擷取結果。

<a id="requirementsSection" />

## 需求

**標頭：** XGameUI.h

**程式庫：** xgameruntime.lib

**支援的平台：** Windows、Steam Deck、XBOX One 系列主機和 XBOX Series 主機

<a id="seealsoSection" />

## 另請參閱

[XGameUI](/zh-TW/reference/system/xgameui/xgameui_members)


## Related topics

- [XGameUiShowErrorDialogResult](/reference/system/xgameui/functions/xgameuishowerrordialogresult.md)
- [XGameUI](/reference/system/xgameui/xgameui_members.md)
- [XGameUiShowErrorDialogAsync](/reference/system/xgameui/functions/xgameuishowerrordialogasync.md)
- [XGameUiShowMessageDialogAsync](/reference/system/xgameui/functions/xgameuishowmessagedialogasync.md)
- [XGameUiShowErrorDialogUiCallback](/reference/system/xgameui/functions/xgameuishowerrordialoguicallback.md)
