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

# XGameSave Wrapper 参考（API 内容）

> Index of the XGameSave wrapper reference: the Provider class, its methods, BlobInfo struct, and BlobData, BlobInfoSet, BlobNames, and ContainerNames types.

# XGameSave 包装器参考

## 类

| 类 | 说明 |
| - | - |
| [Provider](https://docs.xbox.com/zh-CN/reference/system/Wrappers/classes/provider/xgamesave_wrapper_provider.md) | **XGameSave** 包装器的主要管理类。 |

## 结构体

| 结构体 | 说明 |
| - | - |
| [BlobInfo](https://docs.xbox.com/zh-CN/reference/system/Wrappers/structs/blobinfo.md) | 包含 XGameSave 包装器使用的 blob（文件）的名称和大小。 |

## 向量

| 向量 | 说明 |
| - | - |
| [BlobData](https://docs.xbox.com/zh-CN/reference/system/Wrappers/vectors/blobdata.md) | 可由 XGameSave 包装器写入或读取的基本单元（文件或 blob）。 |
| [BlobInfoSet](https://docs.xbox.com/zh-CN/reference/system/Wrappers/vectors/blobinfoset.md) | BlobInfo 结构体的向量，用于描述指定容器中包含的 blob（文件）。 |
| [BlobNames](https://docs.xbox.com/zh-CN/reference/system/Wrappers/vectors/blobnames.md) | 指定容器中所包含的 blob（文件）名称的向量。 |
| [ContainerNames](https://docs.xbox.com/zh-CN/reference/system/Wrappers/vectors/containernames.md) | 游戏所使用的容器名称的向量。 |

## 错误代码

XGameSave 包装器 API 使用 XGameSave 错误代码。可能返回以下代码。有关完整列表，请参阅[错误代码](https://docs.xbox.com/zh-CN/reference/errorcodes.md)。

| 代码 | 值 | 说明 |
| - | - | - |
| E\_GS\_NO\_ACCESS | 0x80830002 | 该操作失败，因为游戏无权访问容器存储空间。 |
| E\_GS\_OUT\_OF\_LOCAL\_STORAGE | 0x80830003 | 设备没有足够的存储容量来保存游戏。 |
| E\_GS\_USER\_CANCELED | 0x80830004 | 用户取消了其游戏存档的下载。 |
| E\_GS\_UPDATE\_TOO\_BIG | 0x80830005 | 存档更新的大小过大。 |
| E\_GS\_QUOTA\_EXCEEDED | 0x80830006 | 游戏为此用户的存储配额已被超出。 |
| E\_GS\_NO\_SERVICE\_CONFIGURATION | 0x80830009 | 游戏未针对已连接存储进行正确配置。 |
| E\_GS\_USER\_NOT\_REGISTERED\_IN\_SERVICE | 0x8083000C | 用户的 MSA 尚未成为 XBOX 服务帐户。 |
| E\_GS\_HANDLE\_EXPIRED | 0x8083000D | 该函数使用的句柄已过期，必须重新获取。 |

## 概念文档

* [游戏存档概述](https://docs.xbox.com/zh-CN/build/core-features/common/game-save/game-saves-overview.md)
* [XGameSave 指南](https://docs.xbox.com/zh-CN/build/core-features/common/game-save/xgamesave.md)
* [XGameSaveFiles 指南](https://docs.xbox.com/zh-CN/build/core-features/common/game-save/xgamesavefiles.md)

## 另请参阅

[系统 API 参考](https://docs.xbox.com/zh-CN/reference/system/gc-reference-system-toc.md)
[XGameSave API 参考](https://docs.xbox.com/zh-CN/reference/system/xgamesave/xgamesave_members.md)


## Related topics

- [Microsoft.Xbox.Wrappers.XGameSave.Provider 参考](https://docs.xbox.com/zh-CN/reference/system/Wrappers/classes/provider/xgamesave_wrapper_provider.md)
- [XGameSave（API 内容）](https://docs.xbox.com/zh-CN/reference/system/xgamesave/xgamesave_members.md)
- [XGameSaveFiles（API 内容）](https://docs.xbox.com/zh-CN/reference/system/xgamesavefiles/xgamesavefiles_members.md)
- [XGameSave API 概述](https://docs.xbox.com/zh-CN/build/core-features/common/game-save/xgamesave.md)
- [Save](https://docs.xbox.com/zh-CN/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_save.md)
