SeekableStreamWriteAsync(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) Версия: 4.0.4
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 Byte
- The buffer to write data from.
- offset Int32
- The zero-based byte offset in buffer from which to begin copying bytes to the stream.
- count Int32
- The maximum number of bytes to write.
- cancellationToken CancellationToken
- The token to monitor for cancellation requests. The default value is None.
TaskA task that represents the asynchronous write operation.
ArgumentNullException | buffer is . |
ArgumentOutOfRangeException | offset or count is negative. |
ArgumentException | The sum of offset and count is larger than the buffer length. |
NotSupportedException | The stream does not support writing. |
ObjectDisposedException | The stream has been disposed. |
InvalidOperationException | The stream is currently in use by a previous write operation. |