컴파일러 경고(수준 1) CS1574

업데이트: 2007년 11월

오류 메시지

'construct'의 XML 주석에 잘못된 cref 특성 'name' 구문이 있습니다.
XML comment on 'construct' has syntactically incorrect cref attribute 'name'

<exception> 태그에서처럼 cref 태그로 전달한 문자열이 현재 빌드 환경에서 사용할 수 없는 멤버를 참조했습니다. cref 태그로 전달한 문자열은 올바른 구문의 멤버나 필드 이름이어야 합니다.

자세한 내용은 문서 주석에 대한 권장 태그를 참조하십시오.

다음 샘플에서는 CS1574 오류가 발생하는 경우를 보여 줍니다.

// CS1574.cs
// compile with: /W:1 /doc:x.xml
using System;

/// <exception cref="System.Console.WriteLin">An exception class.</exception>   // CS1574
// instead, uncomment and try the following line
// /// <exception cref="System.Console.WriteLine">An exception class.</exception>
class EClass : Exception
{
}

class TestClass
{
   public static void Main()
   {
      try
      {
      }
      catch(EClass)
      {
      }
   }
}