Delen via


GameSaveProvider.GetForUserAsync(User, String) Method

Definition

Gets a game save provider for the specified user.

public:
 static IAsyncOperation<GameSaveProviderGetResult ^> ^ GetForUserAsync(User ^ user, Platform::String ^ serviceConfigId);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<GameSaveProviderGetResult> GetForUserAsync(User const& user, winrt::hstring const& serviceConfigId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<GameSaveProviderGetResult> GetForUserAsync(User user, string serviceConfigId);
function getForUserAsync(user, serviceConfigId)
Public Shared Function GetForUserAsync (user As User, serviceConfigId As String) As IAsyncOperation(Of GameSaveProviderGetResult)

Parameters

user
User

Type: User

User who the game saves are for.

serviceConfigId
String

Platform::String

winrt::hstring

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The service configuration ID (SCID) used by your game.

Returns

Type: IAsyncOperation<;GameSaveProviderGetResult>;

IAsyncOperation<;GameSaveProviderGetResult>; that represents the state of the asynchronous operation.

Attributes

Remarks

GetForUserAsync obtains a GameSaveProvider instance for the specified user. After the asynchronous operation completes, check the Status property of the result to determine whether the operation succeeded with GameSaveErrorStatus.Ok.

Your title ID and service configuration ID (SCID) must be properly configured or this method will fail.

Applies to

See also