Share via


컴파일러 경고(수준 2) CS1572

업데이트: 2007년 11월

오류 메시지

'construct'의 XML 주석에 'parameter'에 대한 매개 변수 태그는 있지만 해당 이름의 매개 변수는 없습니다.
XML comment on 'construct' has a param tag for 'parameter', but there is no parameter by that name

/doc 컴파일러 옵션을 사용할 때 메서드에 존재하지 않는 매개 변수에 대해 주석을 지정했습니다. 이름 특성에 전달된 값을 변경하거나 주석줄 중 하나를 제거하십시오.

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

// CS1572.cs
// compile with: /W:2 /doc:x.xml

/// <summary>help text</summary>
public class MyClass
{
   /// <param name='Int1'>Used to indicate status.</param>
   /// <param name='Char1'>Used to indicate status.</param>
   /// <param name='Char2'>???</param> // CS1572
   public static void MyMethod(int Int1, char Char1)
   {
   }

   /// <summary>help text</summary>
   public static void Main ()
   {
   }
}