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. [Edit]

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

Parameters

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

Exceptions

TypeReason
ArgumentNullExceptionbuffer is null. [Edit]
ArgumentOutOfRangeException

index < 0

-or-

count < zero.

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

Remarks

Note: This method overrides TextWriter.Write(char).
[Edit]

Requirements

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