> ## 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](/zh-TW/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

使用 XblContextCreateHandle 建立的 Xbox Live 內容控制代碼。

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

要取得其設定檔之使用者的 XBOX 使用者識別碼。

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

呼叫端配置的 AsyncBlock。

### 傳回值

類型：HRESULT

此 API 作業的 HRESULT 傳回碼。

## 備註

若要取得結果，請在 AsyncBlock 回呼內或在 AsyncBlock 完成後呼叫 [XblProfileGetUserProfileResult](/zh-TW/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](/zh-TW/reference/live/xsapi-c/profile_c/profile_c_members)


## Related topics

- [XblProfileGetUserProfileResult](/zh-TW/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofileresult.md)
- [在 XSAPI C API 中進行非同步呼叫](/zh-TW/services/xbox-services/fundamentals/xbox-services-api/live-flatc-async-patterns.md)
- [XblMultiplayerManagerMember](/zh-TW/reference/live/xsapi-c/multiplayer_manager_c/structs/xblmultiplayermanagermember.md)
- [XblProfileGetUserProfilesAsync](/zh-TW/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesasync.md)
- [XblProfileGetUserProfilesResult](/zh-TW/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesresult.md)
