Documenting Your Code with XML - Visual Basic (original) (raw)

In Visual Basic, you can document your code using XML.

XML documentation comments

Visual Basic provides an easy way to automatically create XML documentation for projects. You can automatically generate an XML skeleton for your types and members, and then provide summaries, descriptive documentation for each parameter, and other remarks. With the appropriate setup, the XML documentation is automatically emitted into an XML file with the same root file name as your project. For information about configuring the generation of the XML documentation file, see -doc compiler option and GenerateDocumentationFile MSBuild property.

The XML file can be consumed or otherwise manipulated as XML. This file is located in the same directory as the output .exe or .dll file of your project.

XML documentation starts with '''. The processing of these comments has some restrictions:

For details on creating an XML file with documentation comments, see the following topics:

See also