How to: Add XML Documentation to X++ Source Code
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
You can create XML documentation files from XML documentation that is written in X++ code. This topic explains how to insert the XML documentation in X++ code.
Inserting XML Documentation
XML documentation in X++ code is preceded by three slashes rather than two slashes, to distinguish it from typical code comments. It must be located at the very start of the code. The following procedure explains how to add XML documentation to source code.
To insert an XML documentation header into X++ application source code
In the AOT, double-click a class declaration or method.
Right-click in the code editor, point to Scripts, point to documentation, and then click HeaderTemplate. Alternatively, with your cursor positioned on an empty line above the code, type ///.
Write documentation between the XML tags.
See also
How to: Generate XML Documentation Files
Walkthrough: Creating XML Documentation in Microsoft Dynamics AX
Best Practices: XML Documentation
Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.