Przeczytaj w języku angielskim

Udostępnij za pośrednictwem


GameSaveProvider Class

Definition

GameSaveProvider is used to create, save, enumerate, and load Xbox Live game saves.

[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Gaming.XboxLive.StorageApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class GameSaveProvider
Inheritance
Object GameSaveProvider
Attributes

Windows requirements

Device family
Xbox Live Extension SDK (introduced in 10.0.10240.0)
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Gaming.XboxLive.StorageApiContract (introduced in v1.0)

Remarks

Call GetForUserAsync or GetSyncOnDemandForUserAsync to obtain a GameSaveProvider instance.

Ważne

This API is targeted towards UWP games and apps with Xbox Live Enabled. Calls to these APIs made from sources that are not Xbox Live enabled will not be able to sync data to the cloud.

Properties

ContainersChangedSinceLastSync

Called on a new GameSaveProvider instance, returns the names of containers that have changed since the application last ran.

User

User associated with this game save provider and its game save containers.

Methods

CreateContainer(String)

Creates a new GameSaveContainer to store a game save.

CreateContainerInfoQuery()

Creates a GameSaveContainerInfoQuery instance that enumerates all containers in this game save provider.

CreateContainerInfoQuery(String)

Creates a GameSaveContainerInfoQuery instance that enumerates the containers in this game save provider that have names that begin with the specified prefix.

DeleteContainerAsync(String)

Asynchronously deletes the specified game save container.

GetForUserAsync(User, String)

Gets a game save provider for the specified user.

GetRemainingBytesInQuotaAsync()

Get the bytes remaining in the user's quota for this game save provider.

GetSyncOnDemandForUserAsync(User, String)

Gets a partially-synced game save provider that syncs containers on demand.

Applies to

Produkt Wersje
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

See also