HttpStreamContent.BufferAllAsync 方法

定义

HttpStreamContent 作为异步操作序列化到内存中。

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)

返回

IAsyncOperationWithProgress<UInt64,UInt64>

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

IAsyncOperationWithProgress<uint64_t,uint64_t>

表示异步操作的 对象。

实现

属性

注解

此操作不会阻止。 返回的 IAsyncOperationWithProgress (UInt64, UInt64) 对象将在所有内容写入内存后完成。

HttpStreamContent 类可用于流式传输长度可能任意的内容。 如果所有 HttpStreamContent 都不能容纳在内存中,BufferAllAsync 方法将失败。

适用于