Share via


Microsoft.Xbox.Wrappers.XGameSave.Provider.GetQuota

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

Syntax

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

See also

Game Saves Simplified Wrapper