SyntaxRem comment ' comment
DescriptionUse the Rem statement or an apostrophe (') to place remarks within the code. The comment may appear on a line by itself or at the end of a logical statement line. New in 2005. Visual Basic 2005 includes a new XML Comments feature that lets you decorate your class members with special XML-formatted comments. Visual Studio recognizes and uses these comments to enhance the development environment. To use XML comments, place the insertion point on a blank line in your code, just above a method definition, then type three single-quote marks. Immediately, even before pressing the Enter key, the following template appears. ''' <summary> ''' ''' </summary> ''' <param name="sender"></param> ''' <param name="e"></param> ''' <remarks></remarks> Once these parts are filled in with the appropriate content, Visual Studio uses the information to display more verbose IntelliSense details concerning the related method. It also exports the XML content to a documentation file during the compile of the assembly. Usage at a Glance
Version Differences
|