<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.6.0-preview5.19224.8" />

ConfigurationException

The exception that is thrown when a configuration system error has occurred.
public virtual string BareMessage { get; }

Gets a description of why this configuration exception was thrown.

public virtual string Filename { get; }

Gets the path to the configuration file that caused this configuration exception to be thrown.

public virtual int Line { get; }

Gets the line number within the configuration file at which this configuration exception was thrown.

Initializes a new instance of the ConfigurationException class.

Initializes a new instance of the ConfigurationException class.

public ConfigurationException(string message)

Initializes a new instance of the ConfigurationException class.

public ConfigurationException(string message, Exception inner)

Initializes a new instance of the ConfigurationException class.

public ConfigurationException(string message, XmlNode node)

Initializes a new instance of the ConfigurationException class.

public ConfigurationException(string message, Exception inner, XmlNode node)

Initializes a new instance of the ConfigurationException class.

public ConfigurationException(string message, string filename, int line)

Initializes a new instance of the ConfigurationException class.

public ConfigurationException(string message, Exception inner, string filename, int line)

Initializes a new instance of the ConfigurationException class.

public static string GetXmlNodeFilename(XmlNode node)

Gets the path to the configuration file from which the internal XmlNode object was loaded when this configuration exception was thrown.

public static int GetXmlNodeLineNumber(XmlNode node)

Gets the line number within the configuration file that the internal XmlNode object represented when this configuration exception was thrown.