ConfigurationErrorsException.Errors 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會收到一堆錯誤,說明這個 ConfigurationErrorsException 例外被拋出的原因。
public:
property System::Collections::ICollection ^ Errors { System::Collections::ICollection ^ get(); };
public System.Collections.ICollection Errors { get; }
member this.Errors : System.Collections.ICollection
Public ReadOnly Property Errors As ICollection
屬性值
一個 ICollection 包含錯誤的物件,該物件指出此例外被拋出的原因 ConfigurationErrorsException 。
備註
此 Errors 屬性會收集操作過程中可能發生的盡可能多的錯誤,例如讀取設定檔。 拋出的例外只顯示第一個錯誤。 你可以查看 Errors 所有錯誤。