FileStreamWriteAsync Method |
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.
Namespace: CMS.FileSystemStorageAssembly: CMS.FileSystemStorage (in CMS.FileSystemStorage.dll) Version: 10.0.0
Syntax public override Task WriteAsync(
byte[] buffer,
int offset,
int count,
CancellationToken cancellationToken
)
Parameters
- buffer
- Type: SystemByte
The buffer to write data from. - offset
- Type: SystemInt32
The zero-based byte offset in buffer from which to begin copying bytes to the stream. - count
- Type: SystemInt32
The maximum number of bytes to write. - cancellationToken
- Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests. The default value is None.
Return Value
Type:
TaskA task that represents the asynchronous write operation.
Exceptions See Also