Condividi tramite


HttpStreamContent.ReadAsStringAsync Metodo

Definizione

public:
 virtual IAsyncOperationWithProgress<Platform::String ^, unsigned long long> ^ ReadAsStringAsync() = ReadAsStringAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<winrt::hstring, uint64_t> ReadAsStringAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<string,ulong> ReadAsStringAsync();
function readAsStringAsync()
Public Function ReadAsStringAsync () As IAsyncOperationWithProgress(Of String, ULong)

Restituisce

IAsyncOperationWithProgress<String,UInt64>

Windows.Foundation.IAsyncOperationWithProgress<Platform::String,unsigned long long>

IAsyncOperationWithProgress<winrt::hstring,uint64_t>

Oggetto che rappresenta l'operazione asincrona.

Implementazioni

Attributi

Commenti

Questa operazione non verrà bloccata. L'oggetto IAsyncOperationWithProgress(String, UInt64) restituito verrà completato dopo che tutto il contenuto è stato scritto in String.

La classe HttpStreamContent può essere usata per trasmettere contenuto che potrebbe essere di lunghezza arbitraria. Il metodo ReadAsStringAsync avrà esito negativo se tutti gli elementi HttpStreamContent non possono adattarsi alla memoria perché questo metodo richiede che l'intero contenuto venga memorizzato nel buffer in memoria per primo.

Si applica a