Mono Class Library: System.Xml.XmlWriter Overview | Members

System.Xml.XmlWriter.WriteChars Method

Writes text a buffer at a time. [Edit]

public abstract void WriteChars (char[] buffer, int index, int count)

Parameters

buffer
A char array containing the text to write. [Edit]
index
A int specifying the position within the array of the start of the text to write. [Edit]
count
A int specifying the number of characters to write. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionbuffer is null. [Edit]
ArgumentExceptionThe buffer length minus index is less than count. [Edit]
ArgumentOutOfRangeExceptionindex or count is less than zero. [Edit]
InvalidOperationExceptionThe XmlWriter.WriteState is WriteState.Closed. [Edit]

Remarks

Operation
As described above.

Note to Inheritors

When overriding this method, throw an exception if surrogate pair characters would be split across multiple buffer writes. This exception must be caught in order to continue writing the next surrogate pair characters. The XML specification defines the valid ranges for surrogate pairs.

This method must be overridden in order to provide the functionality described above, as there is no default implementation.

[Edit]

Requirements

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