SeekableStreamCopyTo(Stream, Int32) - метод

Reads the bytes from the current stream and writes them to another stream, using a specified buffer size.

Definition

Пространство имён: Tessa.Platform.IO
Сборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
C#
public override void CopyTo(
	Stream destination,
	int bufferSize
)

Параметры

destination  Stream
The stream to which the contents of the current stream will be copied.
bufferSize  Int32
The size of the buffer. This value must be greater than zero. The default size is 81920.

Исключения

ArgumentNullExceptiondestination is .
ArgumentOutOfRangeExceptionbufferSize is negative or zero.
NotSupportedExceptionThe current stream does not support reading. -or- destination does not support writing.
ObjectDisposedExceptionEither the current stream or destination were closed before the CopyTo(Stream) method was called.
IOExceptionAn I/O error occurred.

См. также