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

# XblProfileGetUserProfileAsync

> XblProfileGetUserProfileAsync

# XblProfileGetUserProfileAsync

获取特定 XBOX 用户的用户配置文件。

## 语法

```cpp theme={null}
HRESULT XblProfileGetUserProfileAsync(  
         XblContextHandle xboxLiveContext,  
         uint64_t xboxUserId,  
         XAsyncBlock* async  
)  
```

### 参数

*xboxLiveContext*   \_In\_\
类型：[XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

使用 XblContextCreateHandle 创建的 XBOX Live 上下文句柄。

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

要获取其配置文件的用户的 XBOX 用户 ID。

*async*   \_In\_\
类型：XAsyncBlock\*

调用方分配的 AsyncBlock。

### 返回值

类型：HRESULT

此 API 操作的 HRESULT 返回代码。

## 备注

若要获取结果，请在 AsyncBlock 回调内或在 AsyncBlock 完成后调用 [XblProfileGetUserProfileResult](/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofileresult)。

## REST 调用

调用 V2 GET /users/batch/profile/settings

## 要求

**头文件：** profile\_c.h

**库：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另请参阅

[profile\_c](/reference/live/xsapi-c/profile_c/profile_c_members)


## Related topics

- [XblProfileGetUserProfileResult](/zh-CN/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofileresult.md)
- [在 XSAPI C API 中进行异步调用](/zh-CN/services/xbox-services/fundamentals/xbox-services-api/live-flatc-async-patterns.md)
- [XblMultiplayerManagerMember](/zh-CN/reference/live/xsapi-c/multiplayer_manager_c/structs/xblmultiplayermanagermember.md)
- [XblProfileGetUserProfilesAsync](/zh-CN/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesasync.md)
- [XblProfileGetUserProfilesResult](/zh-CN/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesresult.md)
