WriteComment()
XmlTextWriter::WriteComment(String) method
Writes out a comment containing the specified text.
void System::Xml::XmlTextWriter::WriteComment(String text) override
Arguments
| Parameter | Type | Description |
|---|---|---|
| text | String | Text to place inside the comment. |
Exceptions
| Exception | Description |
|---|---|
| ArgumentException | The text would result in a non-well formed XML document. |
| InvalidOperationException | The XmlTextWriter::get_WriteState value is WriteState::Closed. |
See Also
- Class String
- Class XmlTextWriter
- Namespace System::Xml
- Library Aspose.Slides