MemoryStream.WriteTo Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Writes the entire contents of this memory stream to another stream.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- stream
- Type: System.IO.Stream
The stream to write this memory stream to.
| Exception | Condition |
|---|---|
| ArgumentNullException | stream is null. |
| ObjectDisposedException | The current or target stream is closed. |
When the current stream is open, this method is equivalent to calling Stream.Write on the underlying buffer of this stream.
Show: