Windows apps
Collapse the table of content
Expand the table of content

WriteTo Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Writes the entire contents of this memory stream to another stream.

Namespace:  System.IO
Assembly:  System.IO (in System.IO.dll)

public virtual void WriteTo(
	Stream stream
)

Parameters

stream
Type: System.IO..::..Stream
The stream to write this memory stream to.

When the current stream is open, this method is equivalent to calling Stream..::..Write on the underlying buffer of this stream.

Show:
© 2017 Microsoft