다음을 통해 공유


<see>(C# 프로그래밍 가이드)

<see cref="member"/>

매개 변수

  • cref = "member"
    현재 컴파일 환경에서 호출될 수 있는 멤버 또는 필드에 대한 참조입니다. 컴파일러는 지정된 코드 요소가 있고 출력 XML의 요소 이름에 member가 전달되는지 검사합니다.member를 큰따옴표(" ")로 묶습니다.

설명

<see> 태그는 텍스트 내부에서 링크를 지정할 수 있게 합니다. See Also 섹션에 배치할 텍스트를 지정하려면 <seealso> 를 사용합니다. 코드 요소의 문서 페이지에 대한 내부 하이퍼링크를 만들려면 cref 특성을 사용합니다.

/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()
    {
    }
}

참고 항목

참조

문서 주석에 대한 권장 태그(C# 프로그래밍 가이드)

개념

C# 프로그래밍 가이드