Dela via


HttpStreamContent.BufferAllAsync Method

Definition

Serialize the HttpStreamContent into memory as an asynchronous operation.

public:
 virtual IAsyncOperationWithProgress<unsigned long long, unsigned long long> ^ BufferAllAsync() = BufferAllAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<uint64_t, uint64_t> BufferAllAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<ulong,ulong> BufferAllAsync();
function bufferAllAsync()
Public Function BufferAllAsync () As IAsyncOperationWithProgress(Of ULong, ULong)

Returns

IAsyncOperationWithProgress<UInt64,UInt64>

Windows.Foundation.IAsyncOperationWithProgress<unsigned long long,unsigned long long>

IAsyncOperationWithProgress<uint64_t,uint64_t>

The object that represents the asynchronous operation.

Implements

Attributes

Remarks

This operation will not block. The returned IAsyncOperationWithProgress(UInt64, UInt64) object will complete after all of the content has been written into memory.

The HttpStreamContent class can be used to stream content that might be of arbitrary length. The BufferAllAsync method will fail if all of the HttpStreamContent can't fit in memory.

Applies to