共用方式為


<paramref> (Visual Basic)

更新:2007 年 11 月

將文字格式化成參數。

 <paramref name="name"/>

參數

  • name
    為將參考之參數的名稱。以雙引號 (" ") 將名稱括起來。

備註

<paramref> 標記 (Tag) 讓您可以指出要做為參數的字。可用某些不同的方式來處理 XML 檔案,以格式化此參數。

使用 /doc 進行編譯,將文件註解處理為檔案。

範例

這個範例會使用 <paramref> 標記,來參考 id 參數。

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