Condividi tramite


GameSaveContainer.ReadAsync(IMapView<String,IBuffer>) Metodo

Definizione

Legge i BLOB da questo contenitore, come specificato da BLOBsToRead. I buffer passati in BLOBToRead devono essere sufficienti per archiviare i dati BLOB.

public:
 virtual IAsyncOperation<GameSaveOperationResult ^> ^ ReadAsync(IMapView<Platform::String ^, IBuffer ^> ^ blobsToWrite) = ReadAsync;
public:
 virtual IAsyncOperation<GameSaveOperationResult ^> ^ ReadAsync(IMapView<Platform::String ^, IBuffer ^> ^ blobsToRead) = ReadAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GameSaveOperationResult> ReadAsync(IMapView<winrt::hstring, IBuffer const&> const& blobsToWrite);
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GameSaveOperationResult> ReadAsync(IMapView<winrt::hstring, IBuffer const&> const& blobsToRead);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GameSaveOperationResult> ReadAsync(IReadOnlyDictionary<string,IBuffer> blobsToWrite);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GameSaveOperationResult> ReadAsync(IReadOnlyDictionary<string,IBuffer> blobsToRead);
function readAsync(blobsToWrite)
function readAsync(blobsToRead)
Public Function ReadAsync (blobsToWrite As IReadOnlyDictionary(Of String, IBuffer)) As IAsyncOperation(Of GameSaveOperationResult)
Public Function ReadAsync (blobsToRead As IReadOnlyDictionary(Of String, IBuffer)) As IAsyncOperation(Of GameSaveOperationResult)

Parametri

blobsToWriteblobsToRead

IMapView<String,IBuffer>

IReadOnlyDictionary<String,IBuffer>

IMapView<Platform::String,IBuffer>

IMapView<winrt::hstring,IBuffer>

Restituisce

Tipo: IAsyncOperation<; GameSaveOperationResult>;

IAsyncOperation<; GameSaveOperationResult>, che rappresenta lo stato dell'operazione asincrona.

Attributi

Commenti

Usare GameSaveBlobInfoQuery per determinare le dimensioni del buffer necessarie per ogni BLOB di salvataggio del gioco richiesto.

Se l'operazione viene completata correttamente, la proprietà length dei buffer restituiti specifica la quantità di dati contenuti in ogni buffer.

ReadAsync differisce da GetAsync in cui GetAsync alloca automaticamente i buffer necessari per i dati BLOB e restituisce i dati in un oggetto GameSaveBlobGetResult. ReadAsync scrive invece direttamente nei buffer passati nel parametro BLOBsToRead .

Al termine dell'operazione asincrona, controllare la proprietà Status del risultato per determinare se l'operazione ha avuto esito positivo con GameSaveErrorStatus.Ok.

Si applica a

Vedi anche