Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 1.3 KB

randomaccessstream_copyandcloseasync_661963778.md

File metadata and controls

38 lines (22 loc) · 1.3 KB
-api-id -api-type
M:Windows.Storage.Streams.RandomAccessStream.CopyAndCloseAsync(Windows.Storage.Streams.IInputStream,Windows.Storage.Streams.IOutputStream)
winrt method

Windows.Storage.Streams.RandomAccessStream.CopyAndCloseAsync

-description

Copies a source stream to a destination stream and waits for the copy operation to complete.

-parameters

-param source

The stream to copy data from.

-param destination

The stream to copy data to.

-returns

The byte writer operation. The first integer represents the number of bytes written. The second integer represents the progress of the write operation.

-remarks

The CopyAndCloseAsync method is similar to CopyAsync but also calls and waits for FlushAsync and Close on the output stream before its asynchronous operation completes.

-examples

-see-also

IAsyncOperationWithProgress<ulong, ulong>