Writes text a buffer at a time.
Type Reason ArgumentNullException buffer is null. ArgumentOutOfRangeException index or count is less than zero.
- or -
The buffer length minus index is less than count.
InvalidOperationException The XmlTextWriter.WriteState is WriteState.Closed.
Note:This method can be used to write large amounts of text a buffer at a time.
An exception is thrown 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 overrides XmlWriter.WriteChars(Char[], int, int).
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0