Share via


GameSaveContainer.SubmitPropertySetUpdatesAsync Method

Definition

Similar to SubmitUpdatesAsync, except that this method operates on a PropertySet instead of a mapped view (or dictionary in C#).

public:
 virtual IAsyncOperation<GameSaveOperationResult ^> ^ SubmitPropertySetUpdatesAsync(IPropertySet ^ blobsToWrite, IIterable<Platform::String ^> ^ blobsToDelete, Platform::String ^ displayName) = SubmitPropertySetUpdatesAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GameSaveOperationResult> SubmitPropertySetUpdatesAsync(IPropertySet const& blobsToWrite, IIterable<winrt::hstring> const& blobsToDelete, winrt::hstring const& displayName);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GameSaveOperationResult> SubmitPropertySetUpdatesAsync(IPropertySet blobsToWrite, IEnumerable<string> blobsToDelete, string displayName);
function submitPropertySetUpdatesAsync(blobsToWrite, blobsToDelete, displayName)
Public Function SubmitPropertySetUpdatesAsync (blobsToWrite As IPropertySet, blobsToDelete As IEnumerable(Of String), displayName As String) As IAsyncOperation(Of GameSaveOperationResult)

Parameters

blobsToWrite
IPropertySet

Type: IPropertySet

Collection of blob names and the data to write for each blob.

blobsToDelete

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

Type: IIterable<;String>; [JavaScript/C++] | System.Collections.Generic.IEnumerable<;String>; [.NET]

Collection containing the string names of blobs to delete.

displayName
String

Platform::String

winrt::hstring

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

The save game container's display name. Set this to the name that will be displayed for the game save.

Returns

Type: IAsyncOperation<;GameSaveOperationResult>;

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

Attributes

Remarks

This method can be called from JavaScript, unlike SubmitUpdatesAsync which requires creating a mapped view (or dictionary in C#).

blobsToWrite is a PropertySet that should contain key-value pairs of a blob name and a Windows.Storage.Streams.IBuffer (Windows.Storage.Streams.DataWriter, for example).

After the asynchronous operation completes, check the Status property of the result to determine whether the operation succeeded with GameSaveErrorStatus.Ok.

Applies to

See also