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.
The buffer to write data from.
The zero-based byte offset in buffer from which to begin copying bytes to the stream.
The maximum number of bytes to write.
The token to monitor for cancellation requests. The default value is System.Threading.CancellationToken.None.
A task that represents the asynchronous write operation.