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

# XblProfileGetUserProfilesAsync

> XblProfileGetUserProfilesAsync

# XblProfileGetUserProfilesAsync

取得一組指定 XBOX 使用者的一或多個使用者設定檔。

## 語法

```cpp theme={null}
HRESULT XblProfileGetUserProfilesAsync(  
         XblContextHandle xboxLiveContext,  
         uint64_t* xboxUserIds,  
         size_t xboxUserIdsCount,  
         XAsyncBlock* async  
)  
```

### 參數

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

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

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

要取得其設定檔之使用者的 XBOX 使用者識別碼 C 樣式陣列。

*xboxUserIdsCount*   \_In\_\
類型：size\_t

陣列中 XBOX 使用者識別碼的數目。

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

呼叫端配置的 AsyncBlock。

### 傳回值

類型：HRESULT

此 API 作業的 HRESULT 傳回碼。

## 備註

若要取得結果，請在 AsyncBlock 回呼內或在 AsyncBlock 完成後，先呼叫 [XblProfileGetUserProfilesResultCount](/zh-TW/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesresultcount) 以取得傳回的設定檔數目，然後再呼叫 [XblProfileGetUserProfilesResult](/zh-TW/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesresult)。

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

- [XblProfileGetUserProfilesResult](/zh-TW/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesresult.md)
- [XblProfileGetUserProfilesResultCount](/zh-TW/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesresultcount.md)
- [XblProfileGetUserProfileAsync](/zh-TW/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofileasync.md)
- [XblProfileGetUserProfileResult](/zh-TW/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofileresult.md)
- [XblProfileGetUserProfilesForSocialGroupAsync](/zh-TW/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesforsocialgroupasync.md)
