LineWrappingTextWriterWriteLineAsync(Char, Int32, Int32) Method

Asynchronously writes a subarray of characters to the text stream, followed by a line terminator.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public override Task WriteLineAsync(
	char[] buffer,
	int index,
	int count
)

Parameters

buffer  Char
The character array to write data from.
index  Int32
The character position in the buffer at which to start retrieving data.
count  Int32
The number of characters to write.

Return Value

Task
A task that represents the asynchronous write operation.

Exceptions

ArgumentNullExceptionbuffer is .
ArgumentExceptionThe index plus count is greater than the buffer length.
ArgumentOutOfRangeExceptionindex or count is negative.
ObjectDisposedExceptionThe text writer is disposed.
InvalidOperationExceptionThe text writer is currently in use by a previous write operation.

See Also