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

# XGameSaveGetRemainingQuotaResult

> XGameSaveGetRemainingQuotaResult

# XGameSaveGetRemainingQuotaResult

检索 [XGameSaveGetRemainingQuotaAsync](/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync) 函数的结果。

## 语法

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

### 参数

*async*   \_In\_\
类型：[XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

从 [XGameSaveGetRemainingQuotaAsync](/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync) 函数传入的 [XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)。

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

可用作存储的数据量。

### 返回值

类型：HRESULT

函数结果。

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

## 备注

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

## 要求

**标头：** XGameSave.h

**库：** xgameruntime.lib

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

## 概念性文档

* [异步编程模型](/build/core-features/common/async/async-programming-model)

## 另请参阅

[XGameSave](/reference/system/xgamesave/xgamesave_members)\
[XGameSaveGetRemainingQuotaAsync](/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync)\
[调试游戏保存](/build/core-features/common/game-save/game-saves-debugging)


## Related topics

- [XGameSaveGetRemainingQuotaAsync](/zh-CN/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md)
- [异步编程模型](/zh-CN/build/core-features/common/async/async-programming-model.md)
- [XAsyncGetResultSize](/zh-CN/reference/system/xasync/functions/xasyncgetresultsize.md)
- [XGameSave](/zh-CN/reference/system/xgamesave/xgamesave_members.md)
- [面向 GDK 的 Unity C# API 包装器](/zh-CN/build/gdk-and-engines/unity/unity-api-wrappers.md)
