> ## 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.

# XGameUiShowPlayerProfileCardAsync

> XGameUiShowPlayerProfileCardAsync

# XGameUiShowPlayerProfileCardAsync

显示指定玩家的个人资料卡片的 UI。

## 语法

```cpp theme={null}
HRESULT XGameUiShowPlayerProfileCardAsync(  
         XAsyncBlock* async,  
         XUserHandle requestingUser,  
         uint64_t targetPlayer  
)  
```

### 参数

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

指向传递给 [XAsyncRun](/reference/system/xasync/functions/xasyncrun) 的 [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) 的指针。

*requestingUser*   \_In\_<br />类型：XUserHandle

请求个人资料卡片的玩家的 ID。

*targetPlayer*   \_In\_<br />类型：uint64\_t

要显示其个人资料卡片的玩家的 ID。

### 返回值

类型：HRESULT

异步调用的 HRESULT 成功或错误代码。

## 备注

调用 UI 将使游戏进入\_受限模式\_。在受限模式下，当你的游戏处于所调用 UI 的后台时，它将获得较少的系统资源。若要详细了解受限模式和游戏的其他运行模式，请阅读 [XBOX 游戏生命周期（NDA 主题）](/build/console-features/console-workflows/xbox-game-life-cycle)。

## 要求

**标头：** XGameUI.h

**库：** xgameruntime.lib

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

## 另请参阅

[XGameUI](/reference/system/xgameui/xgameui_members)<br />[XGameUIShowPlayerProfileCardResult](/reference/system/xgameui/functions/xgameuishowplayerprofilecardresult)<br />[XBOX 游戏生命周期（NDA 主题）](/build/console-features/console-workflows/xbox-game-life-cycle)


## Related topics

- [XGameUiShowPlayerProfileCardResult](/zh-CN/reference/system/xgameui/functions/xgameuishowplayerprofilecardresult.md)
- [XGameUiShowPlayerProfileCardUiCallback](/zh-CN/reference/system/xgameui/functions/xgameuishowplayerprofilecarduicallback.md)
- [XGameUiSetPlayerProfileCardUiResponse](/zh-CN/reference/system/xgameui/functions/xgameuisetplayerprofilecarduiresponse.md)
- [XR-047 用户配置文件访问](/zh-CN/publishing/certification/xr/xr-047.md)
- [XGameUiUiCallbacks](/zh-CN/reference/system/xgameui/structs/xgameuiuicallbacks.md)
