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

# XblTitleStorageGetBlobMetadataAsync

> XblTitleStorageGetBlobMetadataAsync

# XblTitleStorageGetBlobMetadataAsync

获取指定服务配置、存储类型和存储 ID 下给定路径中的 Blob 元数据对象列表。

## 语法

```cpp theme={null}
HRESULT XblTitleStorageGetBlobMetadataAsync(  
         XblContextHandle xboxLiveContext,  
         const char* serviceConfigurationId,  
         XblTitleStorageType storageType,  
         const char* blobPath,  
         uint64_t xboxUserId,  
         uint32_t skipItems,  
         uint32_t maxItems,  
         XAsyncBlock* async  
)  
```

### 参数

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

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

*serviceConfigurationId*   \_In\_z\_\
类型：char\*

标题的服务配置 ID (SCID)。SCID 区分大小写，因此请直接从合作伙伴中心粘贴。

*storageType*   \_In\_\
类型：[XblTitleStorageType](/reference/live/xsapi-c/title_storage_c/enums/xbltitlestoragetype)

要获取 Blob 元数据对象的存储类型。

*blobPath*   \_In\_z\_\
类型：char\*

要枚举的根路径。结果将针对此路径及其所有子路径中包含的 Blob。（可选）

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

要枚举的标题存储的 XBOX 用户 ID。枚举 GlobalStorage 时会被忽略，因此传递 0 是可接受的。（可选）

*skipItems*   \_In\_\
类型：uint32\_t

返回结果之前要跳过的项数。（可选）

*maxItems*   \_In\_\
类型：uint32\_t

要返回的最大项数。传递 0 以尝试检索所有项。（可选）

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

调用方分配的 AsyncBlock。

### 返回值

类型：HRESULT

此 API 操作的 HRESULT 返回代码。

## 备注

若要获取结果，请在 AsyncBlock 回调内部或 AsyncBlock 完成后调用 XblTitleStorageGetBlobMetadataResult。

## REST 调用

V1 GET trustedplatform/users/xuid({xuid})/scids/{scid}/data/{path}?maxItems={maxItems}\[skipItems={skipItems}]\
V1 GET json/users/xuid({xuid})/scids/{scid}/data/{path}?maxItems={maxItems}\[skipItems={skipItems}]\
V1 GET global/scids/{scid}/data/{path}?maxItems={maxItems}\[skipItems={skipItems}]

## 要求

**头文件：** title\_storage\_c.h

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

## 另请参阅

[title\_storage\_c](/reference/live/xsapi-c/title_storage_c/title_storage_c_members)


## Related topics

- [XblTitleStorageGetBlobMetadataResult](/zh-CN/reference/live/xsapi-c/title_storage_c/functions/xbltitlestoragegetblobmetadataresult.md)
- [获取 Title Storage blob 元数据](/zh-CN/services/xbox-services/storage/title-storage/how-to/live-getting-title-storage-blob-metadata.md)
- [XblTitleStorageBlobMetadataResultGetNextAsync](/zh-CN/reference/live/xsapi-c/title_storage_c/functions/xbltitlestorageblobmetadataresultgetnextasync.md)
- [XblTitleStorageBlobMetadataResultGetNextResult](/zh-CN/reference/live/xsapi-c/title_storage_c/functions/xbltitlestorageblobmetadataresultgetnextresult.md)
- [XblTitleStorageBlobMetadataResultHasNext](/zh-CN/reference/live/xsapi-c/title_storage_c/functions/xbltitlestorageblobmetadataresulthasnext.md)
