-api-id | -api-type |
---|---|
M:Windows.Storage.Streams.RandomAccessStream.CopyAndCloseAsync(Windows.Storage.Streams.IInputStream,Windows.Storage.Streams.IOutputStream) |
winrt method |
Copies a source stream to a destination stream and waits for the copy operation to complete.
The stream to copy data from.
The stream to copy data to.
The byte writer operation. The first integer represents the number of bytes written. The second integer represents the progress of the write operation.
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.