 | JCOBridgeStreamTWriteAsync(Byte, Int32, Int32, CancellationToken) 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: MASES.JCOBridge.C2JBridgeAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntaxpublic 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
Parameters
- 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.
Return Value
TaskA task that represents the asynchronous write operation.
Exceptions
See Also