ConfigurationException Constructor (String, Exception, String, Int32)

ConfigurationException Constructor (String, Exception, String, Int32)

Note: This API is now obsolete.

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the ConfigurationException class.

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

[ObsoleteAttribute("This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException")]
public ConfigurationException(
	string message,
	Exception inner,
	string filename,
	int line


Type: System.String

A message describing why this ConfigurationException exception was thrown.

Type: System.Exception

The inner exception that caused this ConfigurationException to be thrown, if any.

Type: System.String

The path to the configuration file that caused this ConfigurationException to be thrown.

Type: System.Int32

The line number within the configuration file at which this ConfigurationException was thrown.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft