WriteChars()

XmlTextWriter::WriteChars(ArrayPtr<char16_t>, int32_t, int32_t) method

Writes text one buffer at a time.

void System::Xml::XmlTextWriter::WriteChars(ArrayPtr<char16_t> buffer, int32_t index, int32_t count) override

Arguments

ParameterTypeDescription
bufferArrayPtr<char16_t>Character array containing the text to write.
indexint32_tThe position in the buffer indicating the start of the text to write.
countint32_tThe number of characters to write.

Exceptions

ExceptionDescription
ArgumentNullExceptionbuffer is nullptr.
ArgumentOutOfRangeExceptionindex or count is less than zero. The buffer length minus index is less than count; the call results in surrogate pair characters being split or an invalid surrogate pair being written.
InvalidOperationExceptionThe XmlTextWriter::get_WriteState value is WriteState::Closed.

See Also