> ## 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-TW/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md) 函式的結果。

## 語法

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

### 參數

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

從 [XGameSaveGetRemainingQuotaAsync](https://docs.xbox.com/zh-TW/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md) 函式傳遞的 [XAsyncBlock\*](https://docs.xbox.com/zh-TW/reference/system/xasync/structs/xasyncblock.md)。

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

可用作儲存空間的資料量。

### 傳回值

類型：HRESULT

函式結果。

如果應用程式已沒有空間可儲存使用者的相關資料，可能會傳回 **E\_GS\_QUOTA\_EXCEEDED**，否則會成功傳回。

## 備註

請在 [XGameSaveGetRemainingQuotaAsync](https://docs.xbox.com/zh-TW/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md) 的回呼函式中呼叫此函式。此函式可讓您擷取呼叫 [XGameSaveGetRemainingQuotaAsync](https://docs.xbox.com/zh-TW/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md) 的結果，其中包含可協助您判斷任何錯誤的函式結果，以及所要求的剩餘配額值。結果方法通常會與稍後呼叫它們的非同步呼叫內嵌撰寫，但也可以撰寫為個別函式。

## 需求

**標頭：** XGameSave.h

**程式庫：** xgameruntime.lib

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 概念文件

* [非同步程式設計模型](https://docs.xbox.com/zh-TW/build/core-features/common/async/async-programming-model.md)

## 另請參閱

[XGameSave](https://docs.xbox.com/zh-TW/reference/system/xgamesave/xgamesave_members.md)\
[XGameSaveGetRemainingQuotaAsync](https://docs.xbox.com/zh-TW/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md)\
[偵錯遊戲存檔](https://docs.xbox.com/zh-TW/build/core-features/common/game-save/game-saves-debugging.md)


## Related topics

- [XGameSaveGetRemainingQuotaAsync](https://docs.xbox.com/zh-TW/reference/system/xgamesave/functions/xgamesavegetremainingquotaasync.md)
- [非同步程式設計模型](https://docs.xbox.com/zh-TW/build/core-features/common/async/async-programming-model.md)
- [XAsyncGetResultSize](https://docs.xbox.com/zh-TW/reference/system/xasync/functions/xasyncgetresultsize.md)
- [XGameSave (API 內容)](https://docs.xbox.com/zh-TW/reference/system/xgamesave/xgamesave_members.md)
- [在 Unity 專案中使用 GDK API 的 C# 包裝函式](https://docs.xbox.com/zh-TW/build/gdk-and-engines/unity/unity-api-wrappers.md)
