<summary> (Visual Basic)
指定成员的摘要。
语法
<summary>description</summary>
参数
description
对象的摘要。
备注
使用 <summary>
标记描述类型或类型成员。 使用 <remarks> 可针对某个类型说明添加补充信息。
<summary>
标记的文本是唯一有关 IntelliSense 中的类型的信息源,它也显示在对象浏览器中。 有关对象浏览器的信息,请参阅查看代码的结构。
使用 -doc 进行编译以便将文档注释处理到文件中。
示例
此示例使用 <summary>
标记来描述 ResetCounter
方法和 Counter
属性。
''' <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
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈