In The Hand LtdIn The Hand
CopyTo Method (s, destination, bufferSize)
NamespacesInTheHand.IOStreamHelperCopyTo(Stream, Stream, Int32)
.NET Components for Mobility
Reads all the bytes from the current stream and writes them to a destination stream, using a specified buffer size.
Declaration Syntax
C#Visual Basic
public static void CopyTo(
	Stream s,
	Stream destination,
	int bufferSize
)
Public Shared Sub CopyTo ( _
	s As Stream, _
	destination As Stream, _
	bufferSize As Integer _
)
Parameters
s (Stream)

[Missing <param name="s"/> documentation for "M:InTheHand.IO.StreamHelper.CopyTo(System.IO.Stream,System.IO.Stream,System.Int32)"]

destination (Stream)
The stream that will contain the contents of the current stream.
bufferSize (Int32)
The size of the buffer. This value must be greater than zero. The default size is 4096.
Remarks
Copying begins at the current position in the current stream.
Exceptions
ExceptionCondition
ArgumentNullExceptiondestination is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeExceptionbufferSize is negative or zero.
NotSupportedExceptionThe current stream does not support reading.

-or-

destination does not support writing.

Assembly: InTheHand (Module: InTheHand) Version: 7.0.0.0