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
)
Public Overrides Function WriteAsync (
buffer As Byte(),
offset As Integer,
count As Integer,
cancellationToken As CancellationToken
) As Task
public:
virtual Task^ WriteAsync(
array<unsigned char>^ buffer,
int offset,
int count,
CancellationToken cancellationToken
) override
abstract WriteAsync :
buffer : byte[] *
offset : int *
count : int *
cancellationToken : CancellationToken -> Task
override WriteAsync :
buffer : byte[] *
offset : int *
count : int *
cancellationToken : CancellationToken -> Task
Параметры
- 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.
Возвращаемое значение
Тип:
TaskA task that represents the asynchronous write operation.
Исключения См. также