Recommended XML Tags for Documentation Comments (Visual Basic)
The Visual Basic compiler can process documentation comments in your code to an XML file. You can use additional tools to process the XML file into documentation.
XML comments are allowed on code constructs such as types and type members. For partial types, only one part of the type can have XML comments, although there is no restriction on commenting its members.
Note
Documentation comments cannot be applied to namespaces. The reason is that one namespace can span several assemblies, and not all assemblies have to be loaded at the same time.
The compiler processes any tag that is valid XML. The following tags provide commonly used functionality in user documentation.
- <c>
- <code>
- <example>
- <exception> 1
- <include> 1
- <list>
- <para>
- <param> 1
- <paramref>
- <permission> 1
- <remarks>
- <returns>
- <see> 1
- <seealso> 1
- <summary>
- <typeparam> 1
- <value>
(1 The compiler verifies syntax.)
Note
If you want angle brackets to appear in the text of a documentation comment, use <
and >
. For example, the string "<text in angle brackets>"
will appear as <text in angle brackets>
.
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for