<summary> (Visual Basic)
Specifies the summary of the member.
Syntax
<summary>description</summary>
Parameters
description
A summary of the object.
Remarks
Use the <summary>
tag to describe a type or a type member. Use <remarks> to add supplemental information to a type description.
The text for the <summary>
tag is the only source of information about the type in IntelliSense, and is also displayed in the Object Browser. For information about the Object Browser, see Viewing the Structure of Code.
Compile with -doc to process documentation comments to a file.
Example
This example uses the <summary>
tag to describe the ResetCounter
method and Counter
property.
''' <summary>
''' Resets the value of the <c>Counter</c> field.
''' </summary>
Public Sub ResetCounter()
counterValue = 0
End Sub
Private counterValue As Integer = 0
''' <summary>
''' Returns the number of times Counter was called.
''' </summary>
''' <value>Number of times Counter was called.</value>
Public ReadOnly Property Counter() As Integer
Get
counterValue += 1
Return counterValue
End Get
End Property
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.