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!

XmlContext.CreateComment

Creates an XmlComment instance in this context.

[Visual Basic]
Public Function CreateComment( _
   ByVal comment As String _
) As XmlComment
[C#]
public XmlComment CreateComment(
   string comment
);
[C++]
public: XmlComment* CreateComment(
   String* comment
);
[JScript]
public function CreateComment(
   comment : String
) : XmlComment;

Parameters

comment
The text of the comment.

Return Value

An XmlComment instance with the given text.

Exceptions

Exception Type Condition
ArgumentException If text is null or contains the character sequence "-->" in any position.

Remarks

An exception is thrown if text contains the caracter sequence "-->" in any position (that sequence is reserved to indicate the end of a comment).

See Also

XmlContext Class | XmlContext Members | System.Xml Namespace