ConfigurationErrorsException.Errors Property

 

Gets a collection of errors that detail the reasons this ConfigurationErrorsException exception was thrown.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

public ICollection Errors { get; }

Property Value

Type: System.Collections.ICollection

An ICollection object that contains errors that identify the reasons this ConfigurationErrorsException exception was thrown.

The Errors property collects as many errors as possible that might occur during an operation, such as reading a configuration file. The exception thrown shows only the first error. You can access Errors to see all the errors issued.

.NET Framework
Available since 2.0
Return to top
Show: