GameSaveContainer 類別

定義

包含代表單一已儲存遊戲的資料 Blob 集合。

public ref class GameSaveContainer sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Gaming.XboxLive.StorageApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class GameSaveContainer final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Gaming.XboxLive.StorageApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class GameSaveContainer
Public NotInheritable Class GameSaveContainer
繼承
Object Platform::Object IInspectable GameSaveContainer
屬性

Windows 需求

裝置系列
Xbox Live Extension SDK (已於 10.0.10240.0 引進)
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Gaming.XboxLive.StorageApiContract (已於 v1.0 引進)

備註

GameSaveContainer 代表單一已儲存的遊戲,並包含包含儲存遊戲資料且可獨立寫入的資料 Blob 集合。

重要

此 API 是以已啟用 Xbox Live 的 UWP 遊戲和應用程式為目標。 從未啟用 Xbox Live 的來源呼叫這些 API,將無法將資料同步至雲端。

屬性

Name

GameSaveContainer的名稱。

Provider

此容器儲存所在的提供者。

方法

CreateBlobInfoQuery(String)

建立 GameSaveBlobInfoQuery 實例,擷取此容器內的遊戲儲存 Blob,其名稱開頭為指定前置詞。

GetAsync(IIterable<String>)

以非同步方式從容器擷取 Blob。

ReadAsync(IMapView<String,IBuffer>)

從此容器讀取 Blob,如 blobsToRead所指定。 傳入 blobsToRead 的緩衝區必須夠大,才能儲存 Blob 資料。

SubmitPropertySetUpdatesAsync(IPropertySet, IIterable<String>, String)

類似于 SubmitUpdatesAsync,不同之處在于此方法會在 PropertySet 上運作,而不是 C# ) 中的對應檢視表 (或字典。

SubmitUpdatesAsync(IMapView<String,IBuffer>, IIterable<String>, String)

將此容器中的遊戲儲存 Blob 提交一組變更。 變更可以是寫入 Blob 或刪除現有 Blob。 如果容器不存在,則會建立新的容器。 所有寫入和更新都會以不可部分完成的方式套用。 嘗試寫入和刪除相同的 Blob 會導致錯誤。 每個呼叫只能寫入 16 MB 的資料。

適用於

另請參閱