ConfigurationErrorsException.Errors Egenskap

Definition

Hämtar en samling fel som beskriver orsakerna till att undantaget ConfigurationErrorsException utlöstes.

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

Egenskapsvärde

Ett ICollection objekt som innehåller fel som identifierar orsakerna till att undantaget ConfigurationErrorsException utlöstes.

Kommentarer

Egenskapen Errors samlar in så många fel som möjligt som kan inträffa under en åtgärd, till exempel att läsa en konfigurationsfil. Undantaget som utlöses visar bara det första felet. Du kan komma åt Errors för att se alla fel som utfärdats.

Gäller för