共用方式為


編譯器警告 (層級 1) CS1590

更新:2007 年 11 月

錯誤訊息

無效的 XML 包含項目 -- 遺漏檔案屬性

傳遞給 <include> 標記的 path 或 doc 屬性遺失或不完整。

下列範例會產生 CS1590:

// CS1590.cs
// compile with: /W:1 /doc:x.xml

/// <include path='MyDocs/MyMembers[@name="test"]/*' />   // CS1590
// try the following line instead
// /// <include file='x.doc' path='MyDocs/MyMembers[@name="test"]/*' />
class Test
{
   public static void Main()
   {
   }
}