WriteComment()

XmlWriter::WriteComment(String) method

When overridden in a derived class, writes out a comment containing the specified text.

virtual void System::Xml::XmlWriter::WriteComment(String text)=0

Arguments

ParameterTypeDescription
textStringText to place inside the comment.

Exceptions

ExceptionDescription
ArgumentExceptionThe text would result in a non-well-formed XML document.

See Also