MemoryStream.WriteTo Method (Stream)
.NET Framework (current version)
Writes the entire contents of this memory stream to another stream.
Assembly: mscorlib (in mscorlib.dll)
| 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.
Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Show: