Stream.CopyTo Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

Copies the contents the current stream into another stream.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodSupported by Silverlight for Windows Phone CopyTo(Stream) Reads all the bytes from the current stream and writes them to the destination stream.
Public methodSupported by Silverlight for Windows Phone CopyTo(Stream, Int32) Reads all the bytes from the current stream and writes them to a destination stream, using a specified buffer size.

Top

See Also

Reference