<typeparam> (Visual Basic)

定义类型参数名称和说明。

语法

<typeparam name="name">description</typeparam>  

参数

name
类型参数的名称。 用双引号将名称括起来(“ )。

description
类型参数的说明。

注解

<typeparam> 泛型类型或泛型成员声明使用注释中的标记来描述其中一个类型参数。

使用 -doc 编译以处理对文件的文档注释。

示例:

此示例使用 <typeparam> 标记来描述 id 参数。

''' <typeparam name="T">
''' The base item type. Must implement IComparable.
''' </typeparam>
Public Class itemManager(Of T As IComparable)
    ' Insert code that defines class members.
End Class

另请参阅