> ## 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](/reference/system/xgameui/functions/xgameuishowerrordialogasync) 的调用结果。

<a id="syntaxSection" />

## 语法

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

<a id="parametersSection" />

### 参数

*async*   \_In\_\
类型：[XAsyncBlock](/reference/system/xasync/structs/xasyncblock)\*

指向传递给 [XGameUiShowErrorDialogAsync](/reference/system/xgameui/functions/xgameuishowerrordialogasync) 的 [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) 对象的指针。

<a id="retvalSection" />

### 返回值

类型：HRESULT

HRESULT 成功或错误代码。

<a id="remarksSection" />

## 备注

通常，你在 [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) 中指定此函数作为 [XGameUiShowErrorDialogAsync](/reference/system/xgameui/functions/xgameuishowerrordialogasync) 的回调函数。

你也可以在 `XGameUiShowErrorDialogAsync` 完成后调用此函数来检索结果。

<a id="requirementsSection" />

## 要求

**标头：** XGameUI.h

**库：** xgameruntime.lib

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

<a id="seealsoSection" />

## 另请参阅

[XGameUI](/reference/system/xgameui/xgameui_members)


## Related topics

- [XGameUI](/zh-CN/reference/system/xgameui/xgameui_members.md)
- [XGameUiShowErrorDialogAsync](/zh-CN/reference/system/xgameui/functions/xgameuishowerrordialogasync.md)
- [XGameUiShowErrorDialogUiCallback](/zh-CN/reference/system/xgameui/functions/xgameuishowerrordialoguicallback.md)
- [XGameUiShowMessageDialogResult](/zh-CN/reference/system/xgameui/functions/xgameuishowmessagedialogresult.md)
- [XGameUiSetErrorDialogUiResponse](/zh-CN/reference/system/xgameui/functions/xgameuiseterrordialoguiresponse.md)
