Welcome to the Sandcastle XML Comments Guide. This is intended to be a reference that you can use to find out all that you need to know about XML comments as used with Sandcastle to produce help files containing API reference content. If you have any information, tips, updates, or corrections that you would like to see added to the guide, feel free to submit them to the author using the Send Feedback link in the page footer.
The XML comment elements are separated into four categories:
For each XML comments element, information will be given about its placement and usage along with one or more examples. In the syntax examples, optional attributes and parameters will be enclosed in square brackets ([ ]). If an attribute allows you to specify a value from a defined list of values, those values will be shown separated by a pipe character (|). The See Also section will contain links to example API members so that you can see how a topic containing the element is rendered in an actual help file.
Certain elements or attributes they utilize are implemented by Sandcastle or are only usable with a particular third-party tool such as the Sandcastle Help File Builder. Such extensions to the standard XML comments elements and attributes will be noted in the affected topics. Such extensions do not appear in Visual Studio's XML comments IntelliSense. However, an extension is available that can add them. See the Links to Resources topic for more information.
Since the syntax of the XML comments themselves are language neutral with the exception of the comment characters that precede them, all example code is shown only in C# to reduce unnecessary clutter. Substitute your language's XML comments characters (i.e. triple apostrophe (''') for VB) and the XML comments will work the same way.