Share via


MemoryStream.WriteTo Method

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

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

Syntax

public virtual void WriteTo (
         Stream stream
)

Parameters

  • stream
    The stream to write this memory stream to.

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

MemoryStream Class
MemoryStream Members
System.IO Namespace