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

# XGameSave Provider GetQuota method reference

> Reference for the XGameSave wrapper Provider.GetQuota method, which returns the amount of save-data storage still available to the current user.

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

Returns the amount of data available to store using the Save game wrapper.

## Syntax

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

### Return value

Type: int64\_t

Returns the number of bytes still available within the storage space.

## Remarks

Each game has a limited quota on how much data they can save for a given user. If this quota is exceeded, attempting to save additional data will fail with E\_GS\_QUOTA\_EXCEEDED. To give an accurate view we always make sure that any outstanding writes, updates or deletes are handled first before returning since any of these can change the remaining quota.

## Requirements

**Header:** xgamesavewrappers.hpp

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles


## Related topics

- [XGameSave Provider Save method reference](/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_save.md)
- [XGameSave Provider Initialize method reference](/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_initialize.md)
- [XGameSave Provider Load method reference](/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_load.md)
- [XGameSave Provider Delete(std::string&) method](/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_delete_string.md)
- [XGameSave Provider QueryContainers method](/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_querycontainers.md)
