指定另一個成員的連結。
語法
<see cref="member"/>
參數
member
可從目前編譯環境呼叫之成員或欄位的參考。 編譯器會檢查指定的程式碼項目是否存在,並將 member 傳遞給輸出 XML 中的項目名稱。
member 必須在雙引號內出現 (“ ” )。
備註
使用標記 <see> 來指定文字中的連結。 使用 <seealso> 表示您可能想要出現在「另請參閱」一節中的文字。
使用 -doc 編譯以處理檔案的檔批注。
範例
此範例會 <see> 使用一節中的 UpdateRecord 標記來參考 DoesRecordExist 方法。
''' <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