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

ProxyStreamWriteAsync(Byte, Int32, Int32, CancellationToken) - метод

Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests.

Пространство имён:  Tessa.Platform.IO
Сборка:  Tessa (в Tessa.dll) Версия: 3.5.0.19
Синтаксис
public override Task WriteAsync(
	byte[] buffer,
	int offset,
	int count,
	CancellationToken cancellationToken
)

Параметры

buffer
Тип: SystemByte
The buffer to write data from.
offset
Тип: SystemInt32
The zero-based byte offset in buffer from which to begin copying bytes to the stream.
count
Тип: SystemInt32
The maximum number of bytes to write.
cancellationToken
Тип: System.ThreadingCancellationToken
The token to monitor for cancellation requests. The default value is None.

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

Тип: Task
A task that represents the asynchronous write operation.
Исключения
ИсключениеУсловие
ArgumentNullExceptionbuffer is .
ArgumentOutOfRangeExceptionoffset or count is negative.
ArgumentExceptionThe sum of offset and count is larger than the buffer length.
NotSupportedExceptionThe stream does not support writing.
ObjectDisposedExceptionThe stream has been disposed.
InvalidOperationExceptionThe stream is currently in use by a previous write operation.
См. также