WriteCharEntity()

XmlTextWriter::WriteCharEntity(char16_t) method

Forces the generation of a character entity for the specified Unicode character value.

void System::Xml::XmlTextWriter::WriteCharEntity(char16_t ch) override

Arguments

ParameterTypeDescription
chchar16_tUnicode character for which to generate a character entity.

Exceptions

ExceptionDescription
ArgumentExceptionThe character is in the surrogate pair character range, 0xd800 - 0xdfff; or the text would result in a non-well formed XML document.
InvalidOperationExceptionThe XmlTextWriter::get_WriteState value is WriteState::Closed.

See Also