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

# XblTitleStorageGetQuotaAsync

> XblTitleStorageGetQuotaAsync

# XblTitleStorageGetQuotaAsync

获取指定服务配置和存储类型的标题存储配额信息。

## 语法

```cpp theme={null}
HRESULT XblTitleStorageGetQuotaAsync(  
         XblContextHandle xboxLiveContext,  
         const char* serviceConfigurationId,  
         XblTitleStorageType storageType,  
         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)

要获取配额信息的存储类型。

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

调用方分配的 AsyncBlock。

### 返回值

类型：HRESULT

此 API 操作的 HRESULT 返回代码。

## 备注

对于 TrustedPlatform 存储类型，将针对调用用户的 XBOX 用户 ID 发出请求。若要获取结果，请在 AsyncBlock 回调内部或 AsyncBlock 完成后调用 XblTitleStorageGetQuotaResult。

## REST 调用

V1 GET trustedplatform/users/xuid({xuid})/scids/{scid}\
V1 GET trustedplatform/users/xuid({xuid})/scids/{scid}\
V1 GET json/users/xuid({xuid})/scids/{scid}\
V1 GET global/scids/{scid}

## 要求

**头文件：** 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

- [XblTitleStorageGetQuotaResult](/zh-CN/reference/live/xsapi-c/title_storage_c/functions/xbltitlestoragegetquotaresult.md)
- [获取 Title Storage 服务配置的配额信息](/zh-CN/services/xbox-services/storage/title-storage/how-to/live-getting-title-storage-quota-info.md)
- [XblTitleStorageGetBlobMetadataAsync](/zh-CN/reference/live/xsapi-c/title_storage_c/functions/xbltitlestoragegetblobmetadataasync.md)
- [XblTitleStorageBlobMetadataResultGetNextAsync](/zh-CN/reference/live/xsapi-c/title_storage_c/functions/xbltitlestorageblobmetadataresultgetnextasync.md)
- [XblTitleStorageGetBlobMetadataResult](/zh-CN/reference/live/xsapi-c/title_storage_c/functions/xbltitlestoragegetblobmetadataresult.md)
