StreamedFileDataRequest.WriteAsync(IBuffer) 方法

定义

将数据从缓冲区写入当前流。

public:
 virtual IAsyncOperationWithProgress<unsigned int, unsigned int> ^ WriteAsync(IBuffer ^ buffer) = WriteAsync;
IAsyncOperationWithProgress<uint32_t, uint32_t> WriteAsync(IBuffer const& buffer);
public IAsyncOperationWithProgress<uint,uint> WriteAsync(IBuffer buffer);
function writeAsync(buffer)
Public Function WriteAsync (buffer As IBuffer) As IAsyncOperationWithProgress(Of UInteger, UInteger)

参数

buffer
IBuffer

包含要写入的数据的缓冲区。

返回

IAsyncOperationWithProgress<UInt32,UInt32>

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

IAsyncOperationWithProgress<uint32_t,uint32_t>

此方法完成后,它将返回写入流 (类型 UInt32) 的字节数。 如果应用指定用于监视进度的函数,该函数将接收到目前为止写入 (类型 UInt32) 字节数。

实现

适用于