共用方式為


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>

位元組寫入器作業。 第一個整數代表寫入的位元組數目。 第二個整數代表寫入作業的進度。

屬性

另請參閱

適用於