Gets a connected storage space for a specific service configuration ID (SCID) for the specified user.
public:
static IAsyncOperation<ConnectedStorageSpace^ >^ GetForUserAsync(
User^ user,
String^ serviceConfigurationId
)
user
Type: User
The user to retrieve the connected storage space for.
serviceConfigurationId
Type: String
The SCID for the connected storage space.
Note GetForUserAsync returns ConnectedStorageErrorStatus::NoAccess for all SCIDs except the title’s primary SCID, which is functionally equivalent to calling the version of GetForUserAsync without a serviceConfigurationId parameter.
Type: IAsyncOperation<ConnectedStorageSpace^ >
Returns a connected storage space for a SCID for the specified user.
Note The Connected Storage API requires your title to have its title ID and service configuration ID (SCID) properly configured in order to work. For more information about these required IDs, see Setting Up Sandboxes for Xbox Live Development.
If you do not set your SCID and Title ID in the Package.appxmanifest properly, your Connected Storage API calls will fail with the following error code:
NoAccess - 0x80830002 - The operation failed because the title does not have write access to the container storage space.
If you do not have the ConnectedStorage service enabled for your SCID or you do not configure and publish your Xbox Live config properly, the Connected Storage API may present UI saying that it was unable to get your latest save data. See Xbox Live Services for more documentation.
Namespace: Windows.Xbox.Storage
Metadata: windows.winmd