GameSaveProvider.GetForUserAsync(User, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.