<para> (Visual Basic)

更新:2007 年 11 月

指定将内容格式化为段落。

<para>content</para>

参数

  • content
    段落文本。

备注

<para> 标记用于某个标记(例如 <summary> (Visual Basic)<remarks> (Visual Basic)<returns> (Visual Basic))内部,使您可以将结构添加到文本中。

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

示例

此示例使用 <para> 标记将 UpdateRecord 方法的备注部分拆分为两个段落。

''' <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

请参见

参考

建议的用于文档注释的 XML 标记 (Visual Basic)