How to: Create XML Documentation in Visual Basic
This example shows how to add XML documentation comments to your code.
Note
Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Personalizing the IDE.
To create XML documentation for a type or member
In the Code Editor, position your cursor on the line above the type or member for which you want to create documentation.
Type
'''
(three single-quotation marks).An XML skeleton for the type or member is added in the Code Editor.
Add descriptive information between the appropriate tags.
Note
If you add additional lines within the XML documentation block, each line must begin with
'''
.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.
Compile the code to generate an XML file containing the documentation comments. For more information, see -doc.
See also
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho