語言

ConfigurationErrorsException.Errors 屬性

定義

會收到一堆錯誤,說明這個 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 所有錯誤。

適用於