Mono Class Library: System.IO.StringWriter Overview | Members

System.IO.StringWriter.Write Method

Writes the specified region of a character array to this instance of the System.IO.StringWriter.

public override void Write (char[] buffer, int index, int count)

Parameters

buffer
The char array to read data from.
index
A int that specifies the index at which to begin reading from buffer .
count
A int that specifies the maximum number of characters to write.

Exceptions

TypeReason
ArgumentNullExceptionbuffer is null.
ArgumentOutOfRangeException

index < 0

-or-

count < zero.

ArgumentException(index + count ) > buffer.Length.
ObjectDisposedExceptionThe writer is closed.

Remarks

Note: This method overrides TextWriter.Write(char).

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0