|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
XML Comment Literal
A literal representing an XComment object.
XML comment literals do not contain document content; they contain information about the document. The XML comment section ends with the sequence "-->". This implies the following points:
You cannot use an embedded expression in an XML comment literal because the embedded expression delimiters are valid XML comment content.
XML comment sections cannot be nested, because content cannot contain the value "-->".
You can assign an XML comment literal to a variable, or you can include it in an XML element literal.
An XML literal can span multiple lines without using line continuation characters. This feature enables you to copy content from an XML document and paste it directly into a Visual Basic program.
The Visual Basic compiler converts the XML comment literal to a call to the XComment constructor.