RandomAccessStream.CopyAsync 方法

定义

重载

CopyAsync(IInputStream, IOutputStream)

将源流复制到目标流。

CopyAsync(IInputStream, IOutputStream, UInt64)

将指定数量的字节从源流复制到目标流。

CopyAsync(IInputStream, IOutputStream)

将源流复制到目标流。

public:
 static IAsyncOperationWithProgress<unsigned long long, unsigned long long> ^ CopyAsync(IInputStream ^ source, IOutputStream ^ destination);
/// [Windows.Foundation.Metadata.Overload("CopyAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperationWithProgress<uint64_t, uint64_t> CopyAsync(IInputStream const& source, IOutputStream const& destination);
[Windows.Foundation.Metadata.Overload("CopyAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperationWithProgress<ulong,ulong> CopyAsync(IInputStream source, IOutputStream destination);
function copyAsync(source, destination)
Public Shared Function CopyAsync (source As IInputStream, destination As IOutputStream) As IAsyncOperationWithProgress(Of ULong, ULong)

参数

source
IInputStream

要从中复制数据的流。

destination
IOutputStream

要将数据复制到的流。

返回

IAsyncOperationWithProgress<UInt64,UInt64>

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

IAsyncOperationWithProgress<uint64_t,uint64_t>

字节编写器操作。 第一个整数表示写入的字节数。 第二个整数表示写入操作的进度。

属性

另请参阅

适用于

CopyAsync(IInputStream, IOutputStream, UInt64)

将指定数量的字节从源流复制到目标流。

public:
 static IAsyncOperationWithProgress<unsigned long long, unsigned long long> ^ CopyAsync(IInputStream ^ source, IOutputStream ^ destination, unsigned long long bytesToCopy);
/// [Windows.Foundation.Metadata.Overload("CopySizeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperationWithProgress<uint64_t, uint64_t> CopyAsync(IInputStream const& source, IOutputStream const& destination, uint64_t const& bytesToCopy);
[Windows.Foundation.Metadata.Overload("CopySizeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperationWithProgress<ulong,ulong> CopyAsync(IInputStream source, IOutputStream destination, ulong bytesToCopy);
function copyAsync(source, destination, bytesToCopy)
Public Shared Function CopyAsync (source As IInputStream, destination As IOutputStream, bytesToCopy As ULong) As IAsyncOperationWithProgress(Of ULong, ULong)

参数

source
IInputStream

要从中复制数据的流。

destination
IOutputStream

要将数据复制到的流。

bytesToCopy
UInt64

unsigned long long

uint64_t

要复制的字节数。

返回

IAsyncOperationWithProgress<UInt64,UInt64>

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

IAsyncOperationWithProgress<uint64_t,uint64_t>

字节编写器操作。 第一个整数表示写入的字节数。 第二个整数表示写入操作的进度。

属性

另请参阅

适用于