RandomAccessStream.CopyAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
要将数据复制到的流。
返回
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
要复制的字节数。
返回
Windows.Foundation.IAsyncOperationWithProgress<unsigned long long,unsigned long long>
IAsyncOperationWithProgress<uint64_t,uint64_t>
字节编写器操作。 第一个整数表示写入的字节数。 第二个整数表示写入操作的进度。
- 属性