共用方式為


編譯器警告 (層級 1) CS1584

更新:2007 年 11 月

錯誤訊息

'member' 上的 XML 註解的 cref 屬性 'invalid_syntax' 句法不正確

傳遞到文件註解標記的其中一個參數之語法無效。如需詳細資訊,請參閱建議使用的文件註解標籤 (C# 程式設計手冊)

範例

下列範例會產生 CS1584。

// CS1584.cs
// compile with: /W:1 /doc:CS1584.xml
/// <remarks>Test class</remarks>
public class Test
{
   /// <remarks>Called in <see cref="Test.Mai()n"/>.</remarks>   // CS1584
   // try the following line instead
   // /// <remarks>Called in <see cref="Test.Main()"/>.</remarks>
   public static void Test2() {}

   /// <remarks>Main method</remarks>
   public static void Main() {}
}