다음을 통해 공유


<summary>(Visual C++)

형식 또는 형식 멤버를 설명하려면 <summary> 태그를 사용해야 합니다.형식에 대한 설명을 보충하는 정보를 추가하려면 <remarks>를 사용합니다.

<summary>description</summary>

매개 변수

  • description
    개체에 대한 요약입니다.

설명

<summary>에 대 한 텍스트 태그, IntelliSense에서 형식에 대 한 정보의 유일한 소스가 고도 표시 됩니다의 개체 브라우저 및 코드 주석 웹 보고서에.

/doc로 컴파일하여 문서 주석을 파일로 저장합니다.

예제

// xml_summary_tag.cpp
// compile with: /LD /clr /doc
// post-build command: xdcmake xml_summary_tag.dll

/// Text for class MyClass.
public ref class MyClass {
public:
   /// <summary>MyMethod is a method in the MyClass class.
   /// <para>Here's how you could make a second paragraph in a description. <see cref="System::Console::WriteLine"/> for information about output statements.</para>
   /// <seealso cref="MyClass::MyMethod2"/>
   /// </summary>
   void MyMethod(int Int1) {}

   /// text
   void MyMethod2() {}
};

참고 항목

기타 리소스

XML 문서(Visual C++)