Для изменения размера нажмите или перетащите

ProxyStreamCopyToAsync(Stream, Int32, CancellationToken) - метод

Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified buffer size and cancellation token.

Пространство имён:  Tessa.Platform.IO
Сборка:  Tessa (в Tessa.dll) Версия: 3.5.0.19
Синтаксис
public override Task CopyToAsync(
	Stream destination,
	int bufferSize,
	CancellationToken cancellationToken
)

Параметры

destination
Тип: System.IOStream
The stream to which the contents of the current stream will be copied.
bufferSize
Тип: SystemInt32
The size, in bytes, of the buffer. This value must be greater than zero. The default size is 81920.
cancellationToken
Тип: System.ThreadingCancellationToken
The token to monitor for cancellation requests. The default value is None.

Возвращаемое значение

Тип: Task
A task that represents the asynchronous copy operation.
Исключения
ИсключениеУсловие
ArgumentNullExceptiondestination is .
ArgumentOutOfRangeExceptionbuffersize is negative or zero.
ObjectDisposedExceptionEither the current stream or the destination stream is disposed.
NotSupportedExceptionThe current stream does not support reading, or the destination stream does not support writing.
См. также