Export (0) Print
Expand All

ConfigurationException Constructor

.NET Framework 1.1

The exception that is thrown when an error occurs in a configuration setting. A constructor that accepts an XmlNode argument should be used when reporting errors from configuration section handlers (see IConfigurationSectionHandler).

Overload List

Initializes a new instance of the ConfigurationException class.

[Visual Basic] Public Sub New()
[C#] public ConfigurationException();
[C++] public: ConfigurationException();
[JScript] public function ConfigurationException();

Initializes a new instance of the ConfigurationException class with the specified error message.

[Visual Basic] Public Sub New(String)
[C#] public ConfigurationException(string);
[C++] public: ConfigurationException(String*);
[JScript] public function ConfigurationException(String);

Initializes a new instance of the ConfigurationException class with the specified SerializationInfo and StreamingContext.

[Visual Basic] Protected Sub New(SerializationInfo, StreamingContext)
[C#] protected ConfigurationException(SerializationInfo, StreamingContext);
[C++] protected: ConfigurationException(SerializationInfo*, StreamingContext);
[JScript] protected function ConfigurationException(SerializationInfo, StreamingContext);

Initializes a new instance of the ConfigurationException class with the specified error message and InnerException property.

[Visual Basic] Public Sub New(String, Exception)
[C#] public ConfigurationException(string, Exception);
[C++] public: ConfigurationException(String*, Exception*);
[JScript] public function ConfigurationException(String, Exception);

Initializes a new instance of the ConfigurationException with the specified error message and the name of the configuration section containing the error.

[Visual Basic] Public Sub New(String, XmlNode)
[C#] public ConfigurationException(string, XmlNode);
[C++] public: ConfigurationException(String*, XmlNode*);
[JScript] public function ConfigurationException(String, XmlNode);

Initializes a new instance of the ConfigurationException class with the specified error message and InnerException and the name of the configuration section node that contains the error.

[Visual Basic] Public Sub New(String, Exception, XmlNode)
[C#] public ConfigurationException(string, Exception, XmlNode);
[C++] public: ConfigurationException(String*, Exception*, XmlNode*);
[JScript] public function ConfigurationException(String, Exception, XmlNode);

Initializes a new instance of the ConfigurationException class with the specified error message, the name of the configuration file that contains the error, and the line number in the file.

[Visual Basic] Public Sub New(String, String, Integer)
[C#] public ConfigurationException(string, string, int);
[C++] public: ConfigurationException(String*, String*, int);
[JScript] public function ConfigurationException(String, String, int);

Initializes a new instance of the ConfigurationException with the specified error message and InnerException, the name of the file containing the error, and the line number of the error in the file.

[Visual Basic] Public Sub New(String, Exception, String, Integer)
[C#] public ConfigurationException(string, Exception, string, int);
[C++] public: ConfigurationException(String*, Exception*, String*, int);
[JScript] public function ConfigurationException(String, Exception, String, int);

See Also

ConfigurationException Class | ConfigurationException Members | System.Configuration Namespace

Show:
© 2014 Microsoft