Click or drag to resize

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.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
Syntax
public override Task WriteAsync(
	byte[] buffer,
	int offset,
	int count,
	CancellationToken cancellationToken
)

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

Task
A task that represents the asynchronous write operation.
See Also