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!

XmlWriter.WriteComment

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

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

XmlWriter Class | XmlWriter Members | System.NewXml Namespace