GameSaveContainer.SubmitPropertySetUpdatesAsync メソッド

定義

SubmitUpdatesAsync と同様です。ただし、このメソッドはマップされたビュー (または C# のディクショナリ) ではなく PropertySet で動作します。

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)

パラメーター

blobsToWrite
IPropertySet

型: IPropertySet

BLOB 名と、各 BLOB に対して書き込むデータのコレクション。

blobsToDelete

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

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

削除する BLOB の文字列名を含むコレクション。

displayName
String

Platform::String

winrt::hstring

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

ゲーム コンテナーの表示名を保存します。 これを、ゲームの保存に表示される名前に設定します。

戻り値

型: IAsyncOperation<;GameSaveOperationResult>;

IAsyncOperation<;GameSaveOperationResult>。 非同期操作の状態を表します。

属性

注釈

このメソッドは、マップされたビュー (または C# のディクショナリ) を作成する必要がある SubmitUpdatesAsync とは異なり、JavaScript から呼び出すことができます。

blobsToWritePropertySet であり、BLOB 名と Windows.Storage.Streams.IBuffer (Windows.Storage.Streams.DataWriter など) のキーと値のペアを含める必要があります。

非同期操作が完了したら、結果の Status プロパティをチェックして、GameSaveErrorStatus.Ok で操作が成功したかどうかを判断します。

適用対象

こちらもご覧ください