GameSaveProvider 類別

定義

GameSaveProvider 可用來建立、儲存、列舉及載入 Xbox Live 遊戲儲存。

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

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 引進)

備註

呼叫 GetForUserAsyncGetSyncOnDemandForUserAsync 以取得 GameSaveProvider 實例。

重要

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

屬性

ContainersChangedSinceLastSync

在新的 GameSaveProvider 實例上呼叫,傳回自應用程式上次執行後已變更的容器名稱。

User

與此遊戲儲存提供者及其遊戲儲存容器相關聯的使用者。

方法

CreateContainer(String)

建立新的 GameSaveContainer 來儲存遊戲儲存。

CreateContainerInfoQuery()

建立 GameSaveContainerInfoQuery 實例,列舉此遊戲儲存提供者中的所有容器。

CreateContainerInfoQuery(String)

建立 GameSaveContainerInfoQuery 實例,列舉此遊戲儲存提供者中名稱開頭為指定前置詞的容器。

DeleteContainerAsync(String)

以非同步方式刪除指定的遊戲儲存容器。

GetForUserAsync(User, String)

取得指定使用者的遊戲儲存提供者。

GetRemainingBytesInQuotaAsync()

取得此遊戲儲存提供者的使用者配額中剩餘的位元組。

GetSyncOnDemandForUserAsync(User, String)

取得依需求同步處理容器的部分同步處理遊戲儲存提供者。

適用於

另請參閱