Sdílet prostřednictvím


HttpMultipartFormDataContent.ReadAsBufferAsync Method

Definition

Serialize the HttpMultipartFormDataContent to a buffer as an asynchronous operation.

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

Returns

IAsyncOperationWithProgress<IBuffer,UInt64>

Windows.Foundation.IAsyncOperationWithProgress<Windows.Storage.Streams.IBuffer,unsigned long long>

IAsyncOperationWithProgress<IBuffer,uint64_t>

The object representing the asynchronous operation.

Implements

Attributes

Remarks

This operation will not block. The returned IAsyncOperationWithProgress (of IBuffer and unsigned 64-bit integer) completes after all of the content has been written to the buffer.

The HttpMultipartFormDataContent class can be used to stream content that might be of arbitrary length. The ReadAsBufferAsync method will fail if all of the HttpMultipartFormDataContent can't fit in memory since this method requires the entire content to be buffered in memory first.

Applies to