 | 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.Available starting in .NET Framework 4.6
Namespace: MASES.JCOBridge.C2JBridgeAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
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.
See Also