NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlTextWriter.WriteComment

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
);

Parameters

text
Text to place inside the comment.

Exceptions

Exception Type Condition
ArgumentException If the text would result in a non-well formed XML document

See Also

XmlTextWriter Class | XmlTextWriter Members | System.NewXml Namespace