<see> (C# 程式設計手冊)

<see cref="member"/>

參數

  • cref = "member"
    對可以從目前編譯環境呼叫的成員或欄位的參考。編譯器會檢查特定程式碼項目是否存在,並將 member 傳遞給輸出 XML 中的項目名稱。member 需用雙引號 (" ") 括住。

備註

<see> 標記讓您指定文字中的連結。使用 <seealso> 可以指定要放置於 [請參閱] 區段的文字。使用 cref Attribute 建立程式項目說明頁面的內部超連線。

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

下列範例顯示一個摘要區段中 <see> 標記。

// compile with: /doc:DocFileName.xml 

/// text for class TestClass
public class TestClass
{
    /// <summary>DoWork is a method in the TestClass class.
    /// <para>Here's how you could make a second paragraph in a description. <see cref="System.Console.WriteLine(System.String)"/> for information about output statements.</para>
    /// <seealso cref="TestClass.Main"/>
    /// </summary>
    public static void DoWork(int Int1)
    {
    }

    /// text for Main
    static void Main()
    {
    }
}

如需使用 <see> 的範例,請參閱 <summary>

請參閱

參考

建議使用的文件註解標籤 (C# 程式設計手冊)

概念

C# 程式設計手冊