> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameSaveGetRemainingQuotaResult

> XGameSaveGetRemainingQuotaResult

# XGameSaveGetRemainingQuotaResult

检索 [XGameSaveGetRemainingQuotaAsync](https://docs.xbox.com/zh-CN/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md) 函数的结果。

## 语法

```cpp theme={null}
HRESULT XGameSaveGetRemainingQuotaResult(  
         XAsyncBlock* async,  
         int64_t* remainingQuota  
)  
```

### 参数

*async*   \_In\_\
类型：[XAsyncBlock\*](https://docs.xbox.com/zh-CN/reference/system/xasync/structs/xasyncblock.md)

从 [XGameSaveGetRemainingQuotaAsync](https://docs.xbox.com/zh-CN/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md) 函数传入的 [XAsyncBlock\*](https://docs.xbox.com/zh-CN/reference/system/xasync/structs/xasyncblock.md)。

*remainingQuota*   \_Out\_\
类型：int64\_t\*

可用作存储的数据量。

### 返回值

类型：HRESULT

函数结果。

如果应用程序没有更多空间存储有关用户的数据，可能会返回 **E\_GS\_QUOTA\_EXCEEDED**，否则将成功返回。

## 备注

将此函数作为 [XGameSaveGetRemainingQuotaAsync](https://docs.xbox.com/zh-CN/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md) 的回调函数的一部分进行调用。此函数使你可以检索调用 [XGameSaveGetRemainingQuotaAsync](https://docs.xbox.com/zh-CN/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md) 的结果，其中将包括函数结果（可帮助你确定任何错误）以及所请求的剩余配额的值。结果方法通常与异步调用内联编写（异步调用稍后会调用它们），但也可以编写为单独的函数。

## 要求

**标头：** XGameSave.h

**库：** xgameruntime.lib

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

## 概念性文档

* [异步编程模型](https://docs.xbox.com/zh-CN/build/core-features/common/async/async-programming-model.md)

## 另请参阅

[XGameSave](https://docs.xbox.com/zh-CN/reference/system/xgamesave/xgamesave_members.md)\
[XGameSaveGetRemainingQuotaAsync](https://docs.xbox.com/zh-CN/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md)\
[调试游戏保存](https://docs.xbox.com/zh-CN/build/core-features/common/game-save/game-saves-debugging.md)


## Related topics

- [XGameSaveGetRemainingQuotaAsync](https://docs.xbox.com/zh-CN/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md)
- [异步编程模型](https://docs.xbox.com/zh-CN/build/core-features/common/async/async-programming-model.md)
- [XAsyncGetResultSize](https://docs.xbox.com/zh-CN/reference/system/xasync/functions/xasyncgetresultsize.md)
- [XGameSave（API 内容）](https://docs.xbox.com/zh-CN/reference/system/xgamesave/xgamesave_members.md)
- [在 Unity 项目中使用 GDK API 的 C# 包装器](https://docs.xbox.com/zh-CN/build/gdk-and-engines/unity/unity-api-wrappers.md)
