> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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\_\
类型：[XAsyncBlock\*](https://docs.xbox.com/zh-CN/reference/system/xasync/structs/xasyncblock.md)

指向传递给 [XAsyncRun](https://docs.xbox.com/zh-CN/reference/system/xasync/functions/xasyncrun.md) 的 [XAsyncBlock](https://docs.xbox.com/zh-CN/reference/system/xasync/structs/xasyncblock.md) 的指针。

*requestingUser*   \_In\_\
类型：XUserHandle

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

*targetPlayer*   \_In\_\
类型：uint64\_t

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

### 返回值

类型：HRESULT

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

## 备注

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

## 要求

**标头：** XGameUI.h

**库：** xgameruntime.lib

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

## 另请参阅

[XGameUI](https://docs.xbox.com/zh-CN/reference/system/xgameui/xgameui_members.md)\
[XGameUIShowPlayerProfileCardResult](https://docs.xbox.com/zh-CN/reference/system/xgameui/functions/xgameuishowplayerprofilecardresult.md)\
[XBOX 游戏生命周期（NDA 主题）](https://docs.xbox.com/zh-CN/build/console-features/console-workflows/xbox-game-life-cycle.md)


## Related topics

- [XGameUiShowPlayerProfileCardResult](https://docs.xbox.com/zh-CN/reference/system/xgameui/functions/xgameuishowplayerprofilecardresult.md)
- [XGameUiShowPlayerProfileCardUiCallback](https://docs.xbox.com/zh-CN/reference/system/xgameui/functions/xgameuishowplayerprofilecarduicallback.md)
- [XGameUiSetPlayerProfileCardUiResponse](https://docs.xbox.com/zh-CN/reference/system/xgameui/functions/xgameuisetplayerprofilecarduiresponse.md)
- [XGameUiUiCallbacks](https://docs.xbox.com/zh-CN/reference/system/xgameui/structs/xgameuiuicallbacks.md)
- [XGameUI（API 内容）](https://docs.xbox.com/zh-CN/reference/system/xgameui/xgameui_members.md)
