WriteChars()

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

When overridden in a derived class, writes text one buffer at a time.

virtual void System::Xml::XmlWriter::WriteChars(ArrayPtr<char16_t> buffer, int32_t index, int32_t count)=0

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. or 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.
ArgumentExceptionThe buffer parameter value is not valid.

See Also