Share via


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)

Syntax

'Declaration
Public Overridable Sub WriteTo ( _
    stream As Stream _
)
public virtual void WriteTo(
    Stream stream
)
public:
virtual void WriteTo(
    Stream^ stream
)
abstract WriteTo : 
        stream:Stream -> unit 
override WriteTo : 
        stream:Stream -> unit 
public function WriteTo(
    stream : Stream
)

Parameters

Remarks

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

.NET Framework Security

See Also

Reference

MemoryStream Class

System.IO Namespace