Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual Basic
Comments in Code
 How to: Create XML Documentation in...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Basic Programming Guide
How to: Create XML Documentation in Visual Basic

This example shows how to add XML documentation comments to your code.

To create XML documentation for a type or member

  1. In the Code Editor, position your cursor on the line above the type or member for which you want to create documentation.

  2. Type ''' (three single-quotation marks).

    An XML skeleton for the type or member is added in the Code Editor.

  3. Add descriptive information between the appropriate tags.

    NoteNote:

    If you add additional lines within the XML documentation block, each line must begin with '''.

  4. Add additional code that uses the type or member with the new XML documentation comments.

    IntelliSense displays the text from the <summary> tag for the type or member.

  5. Compile the code to generate an XML file containing the documentation comments. For more information, see /doc.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker