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

# GetQuota

> 返回使用保存游戏包装器时可用于存储的数据量。

# Microsoft.Xbox.Wrappers.XGameSave.Provider.GetQuota

返回使用保存游戏包装器时可用于存储的数据量。

## 语法

```cpp theme={null}
int64_t GetQuota();
```

### 返回值

类型：int64\_t

返回存储空间内仍然可用的字节数。

## 备注

每款游戏对于给定用户能保存的数据量都有配额限制。如果超出该配额，尝试保存额外数据时将会失败，并返回 E\_GS\_QUOTA\_EXCEEDED。为了给出准确的结果，我们始终会确保在返回之前先处理任何未完成的写入、更新或删除操作，因为其中任何一项都可能改变剩余配额。

## 要求

**标头：** xgamesavewrappers.hpp

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机


## Related topics

- [将 Steam Cloud 存储移植到 XBOX GDK](/zh-CN/build/steam-porting-guide/features/steam-cloud.md)
- [XGameSaveGetRemainingQuota](/zh-CN/reference/system/xgamesave/functions/xgamesavegetremainingquota.md)
- [XGameSaveGetRemainingQuotaAsync](/zh-CN/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md)
- [XGameSaveGetRemainingQuotaResult](/zh-CN/reference/system/xgamesave/functions/xgamesavegetremainingquotaresult.md)
- [XblTitleStorageGetQuotaAsync](/zh-CN/reference/live/xsapi-c/title_storage_c/functions/xbltitlestoragegetquotaasync.md)
