VB.net 2010 视频教程 VB.net 2010 视频教程 python基础视频教程
SQL Server 2008 视频教程 c#入门经典教程 Visual Basic从门到精通视频教程
当前位置:
首页 > VB.net教程 >
  • <seealso> (Visual Basic)

指定显示在“另请参见”一节中的链接。

<seealso cref="member"/>

参数

  • member
    对可以通过当前编译环境进行调用的成员或字段的引用。 编译器检查给定的代码元素是否存在,并将 member 传递给输出 XML 中的元素名称。 member 必须位于双引号 (" ") 中。

备注

使用 <seealso> 标记指定您想要在“另请参见”一节中显示的文本。 使用 <see> (Visual Basic) 从文本内指定链接。

使用 /doc 进行编译可以将文档注释处理为文件。

示例

本示例使用 DoesRecordExist 备注一节中的 <seealso> 标记来引用 UpdateRecord 方法。

VB
''' <param name="id">The ID of the record to update.</param>
''' <remarks>Updates the record <paramref name="id"/>.
''' <para>Use <see cref="DoesRecordExist"/> to verify that
''' the record exists before calling this method.</para>
''' </remarks>
Public Sub UpdateRecord(ByVal id As Integer)
    ' Code goes here.
End Sub
''' <param name="id">The ID of the record to check.</param>
''' <returns><c>True</c> if <paramref name="id"/> exists,
''' <c>False</c> otherwise.</returns>
''' <remarks><seealso cref="UpdateRecord"/></remarks>
Public Function DoesRecordExist(ByVal id As Integer) As Boolean
    ' Code goes here.
End Function

 

原文链接:https://docs.microsoft.com/zh-cn/previous-versions/visualstudio/visual-studio-2010/ms172668(v=vs.100)

相关教程