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