次の方法で共有


コンパイラの警告 (レベル 1) CS1574

'construct' に関する XML コメントの cref 属性 '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)  
      {  
      }  
   }  
}