RandomAccessStream.CopyAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CopyAsync(IInputStream, IOutputStream) |
Copies a source stream to a destination stream. |
CopyAsync(IInputStream, IOutputStream, UInt64) |
Copies the specified number of bytes from a source stream to a destination stream. |
CopyAsync(IInputStream, IOutputStream)
Copies a source stream to a destination stream.
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)
Parameters
- source
- IInputStream
The stream to copy data from.
- destination
- IOutputStream
The stream to copy data to.
Returns
Windows.Foundation.IAsyncOperationWithProgress<unsigned long long,unsigned long long>
IAsyncOperationWithProgress<uint64_t,uint64_t>
The byte writer operation. The first integer represents the number of bytes written. The second integer represents the progress of the write operation.
- Attributes
See also
Applies to
CopyAsync(IInputStream, IOutputStream, UInt64)
Copies the specified number of bytes from a source stream to a destination stream.
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)
Parameters
- source
- IInputStream
The stream to copy data from.
- destination
- IOutputStream
The stream to copy data to.
- bytesToCopy
-
UInt64
unsigned long long
uint64_t
The number of bytes to copy.
Returns
Windows.Foundation.IAsyncOperationWithProgress<unsigned long long,unsigned long long>
IAsyncOperationWithProgress<uint64_t,uint64_t>
The byte writer operation. The first integer represents the number of bytes written. The second integer represents the progress of the write operation.
- Attributes