Writes out a comment <!--...--> containing the specified text.
[Visual Basic] Overrides Public Sub WriteComment( _ ByVal text As String _ ) [C#] public override void WriteComment( string text ); [C++] public: override void WriteComment( String* text ); [JScript] public override function WriteComment( text : String );
Exception Type | Condition |
---|---|
ArgumentException | If the text would result in a non-well formed XML document |
XmlTextWriter Class | XmlTextWriter Members | System.NewXml Namespace