Stream. Write To(Stream) Method
Writes the entire contents of this memory stream to another stream.
public: virtual void WriteTo(System::IO::Stream ^ stream);
public virtual void WriteTo (System.IO.Stream stream);
abstract member WriteTo : System.IO.Stream -> unit override this.WriteTo : System.IO.Stream -> unit
Public Overridable Sub WriteTo (stream As Stream)
The stream to write this memory stream to.
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.