ConfigurationException Constructors

Definition

Initializes a new instance of the ConfigurationException class.

Overloads

ConfigurationException()
Obsolete.
Obsolete.

Initializes a new instance of the ConfigurationException class.

ConfigurationException(String)
Obsolete.
Obsolete.

Initializes a new instance of the ConfigurationException class.

ConfigurationException(SerializationInfo, StreamingContext)

Initializes a new instance of the ConfigurationException class.

ConfigurationException(String, Exception)
Obsolete.
Obsolete.

Initializes a new instance of the ConfigurationException class.

ConfigurationException(String, XmlNode)
Obsolete.
Obsolete.

Initializes a new instance of the ConfigurationException class.

ConfigurationException(String, Exception, XmlNode)
Obsolete.
Obsolete.

Initializes a new instance of the ConfigurationException class.

ConfigurationException(String, String, Int32)
Obsolete.
Obsolete.

Initializes a new instance of the ConfigurationException class.

ConfigurationException(String, Exception, String, Int32)
Obsolete.
Obsolete.

Initializes a new instance of the ConfigurationException class.

ConfigurationException()

Caution

This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException

Caution

This class is obsolete. Use System.Configuration.ConfigurationErrorsException

Initializes a new instance of the ConfigurationException class.

public:
 ConfigurationException();
[System.Obsolete("This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException")]
public ConfigurationException ();
public ConfigurationException ();
[System.Obsolete("This class is obsolete.  Use System.Configuration.ConfigurationErrorsException")]
public ConfigurationException ();
Public Sub New ()
Attributes

Applies to

ConfigurationException(String)

Caution

This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException

Caution

This class is obsolete. Use System.Configuration.ConfigurationErrorsException

Initializes a new instance of the ConfigurationException class.

public:
 ConfigurationException(System::String ^ message);
[System.Obsolete("This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException")]
public ConfigurationException (string message);
public ConfigurationException (string message);
[System.Obsolete("This class is obsolete.  Use System.Configuration.ConfigurationErrorsException")]
public ConfigurationException (string message);
[<System.Obsolete("This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException")>]
new System.Configuration.ConfigurationException : string -> System.Configuration.ConfigurationException
new System.Configuration.ConfigurationException : string -> System.Configuration.ConfigurationException
[<System.Obsolete("This class is obsolete.  Use System.Configuration.ConfigurationErrorsException")>]
new System.Configuration.ConfigurationException : string -> System.Configuration.ConfigurationException
Public Sub New (message As String)

Parameters

message
String

A message describing why this ConfigurationException exception was thrown.

Attributes

Applies to

ConfigurationException(SerializationInfo, StreamingContext)

Initializes a new instance of the ConfigurationException class.

protected:
 ConfigurationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ConfigurationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Configuration.ConfigurationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Configuration.ConfigurationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The object that holds the information to deserialize.

context
StreamingContext

Contextual information about the source or destination.

Applies to

ConfigurationException(String, Exception)

Caution

This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException

Caution

This class is obsolete. Use System.Configuration.ConfigurationErrorsException

Initializes a new instance of the ConfigurationException class.

public:
 ConfigurationException(System::String ^ message, Exception ^ inner);
[System.Obsolete("This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException")]
public ConfigurationException (string message, Exception inner);
public ConfigurationException (string message, Exception inner);
[System.Obsolete("This class is obsolete.  Use System.Configuration.ConfigurationErrorsException")]
public ConfigurationException (string message, Exception inner);
[<System.Obsolete("This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException")>]
new System.Configuration.ConfigurationException : string * Exception -> System.Configuration.ConfigurationException
new System.Configuration.ConfigurationException : string * Exception -> System.Configuration.ConfigurationException
[<System.Obsolete("This class is obsolete.  Use System.Configuration.ConfigurationErrorsException")>]
new System.Configuration.ConfigurationException : string * Exception -> System.Configuration.ConfigurationException
Public Sub New (message As String, inner As Exception)

Parameters

message
String

A message describing why this ConfigurationException exception was thrown.

inner
Exception

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

Attributes

Applies to

ConfigurationException(String, XmlNode)

Caution

This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException

Caution

This class is obsolete. Use System.Configuration.ConfigurationErrorsException

Initializes a new instance of the ConfigurationException class.

public:
 ConfigurationException(System::String ^ message, System::Xml::XmlNode ^ node);
[System.Obsolete("This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException")]
public ConfigurationException (string message, System.Xml.XmlNode node);
public ConfigurationException (string message, System.Xml.XmlNode node);
[System.Obsolete("This class is obsolete.  Use System.Configuration.ConfigurationErrorsException")]
public ConfigurationException (string message, System.Xml.XmlNode node);
[<System.Obsolete("This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException")>]
new System.Configuration.ConfigurationException : string * System.Xml.XmlNode -> System.Configuration.ConfigurationException
new System.Configuration.ConfigurationException : string * System.Xml.XmlNode -> System.Configuration.ConfigurationException
[<System.Obsolete("This class is obsolete.  Use System.Configuration.ConfigurationErrorsException")>]
new System.Configuration.ConfigurationException : string * System.Xml.XmlNode -> System.Configuration.ConfigurationException
Public Sub New (message As String, node As XmlNode)

Parameters

message
String

A message describing why this ConfigurationException exception was thrown.

node
XmlNode

The XmlNode that caused this ConfigurationException to be thrown.

Attributes

Applies to

ConfigurationException(String, Exception, XmlNode)

Caution

This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException

Caution

This class is obsolete. Use System.Configuration.ConfigurationErrorsException

Initializes a new instance of the ConfigurationException class.

public:
 ConfigurationException(System::String ^ message, Exception ^ inner, System::Xml::XmlNode ^ node);
[System.Obsolete("This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException")]
public ConfigurationException (string message, Exception inner, System.Xml.XmlNode node);
public ConfigurationException (string message, Exception inner, System.Xml.XmlNode node);
[System.Obsolete("This class is obsolete.  Use System.Configuration.ConfigurationErrorsException")]
public ConfigurationException (string message, Exception inner, System.Xml.XmlNode node);
[<System.Obsolete("This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException")>]
new System.Configuration.ConfigurationException : string * Exception * System.Xml.XmlNode -> System.Configuration.ConfigurationException
new System.Configuration.ConfigurationException : string * Exception * System.Xml.XmlNode -> System.Configuration.ConfigurationException
[<System.Obsolete("This class is obsolete.  Use System.Configuration.ConfigurationErrorsException")>]
new System.Configuration.ConfigurationException : string * Exception * System.Xml.XmlNode -> System.Configuration.ConfigurationException
Public Sub New (message As String, inner As Exception, node As XmlNode)

Parameters

message
String

A message describing why this ConfigurationException exception was thrown.

inner
Exception

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

node
XmlNode

The XmlNode that caused this ConfigurationException to be thrown.

Attributes

Applies to

ConfigurationException(String, String, Int32)

Caution

This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException

Caution

This class is obsolete. Use System.Configuration.ConfigurationErrorsException

Initializes a new instance of the ConfigurationException class.

public:
 ConfigurationException(System::String ^ message, System::String ^ filename, int line);
[System.Obsolete("This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException")]
public ConfigurationException (string message, string filename, int line);
public ConfigurationException (string message, string filename, int line);
[System.Obsolete("This class is obsolete.  Use System.Configuration.ConfigurationErrorsException")]
public ConfigurationException (string message, string filename, int line);
[<System.Obsolete("This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException")>]
new System.Configuration.ConfigurationException : string * string * int -> System.Configuration.ConfigurationException
new System.Configuration.ConfigurationException : string * string * int -> System.Configuration.ConfigurationException
[<System.Obsolete("This class is obsolete.  Use System.Configuration.ConfigurationErrorsException")>]
new System.Configuration.ConfigurationException : string * string * int -> System.Configuration.ConfigurationException
Public Sub New (message As String, filename As String, line As Integer)

Parameters

message
String

A message describing why this ConfigurationException exception was thrown.

filename
String

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

line
Int32

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

Attributes

Applies to

ConfigurationException(String, Exception, String, Int32)

Caution

This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException

Caution

This class is obsolete. Use System.Configuration.ConfigurationErrorsException

Initializes a new instance of the ConfigurationException class.

public:
 ConfigurationException(System::String ^ message, Exception ^ inner, System::String ^ filename, int line);
[System.Obsolete("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);
public ConfigurationException (string message, Exception inner, string filename, int line);
[System.Obsolete("This class is obsolete.  Use System.Configuration.ConfigurationErrorsException")]
public ConfigurationException (string message, Exception inner, string filename, int line);
[<System.Obsolete("This class is obsolete, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException")>]
new System.Configuration.ConfigurationException : string * Exception * string * int -> System.Configuration.ConfigurationException
new System.Configuration.ConfigurationException : string * Exception * string * int -> System.Configuration.ConfigurationException
[<System.Obsolete("This class is obsolete.  Use System.Configuration.ConfigurationErrorsException")>]
new System.Configuration.ConfigurationException : string * Exception * string * int -> System.Configuration.ConfigurationException
Public Sub New (message As String, inner As Exception, filename As String, line As Integer)

Parameters

message
String

A message describing why this ConfigurationException exception was thrown.

inner
Exception

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

filename
String

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

line
Int32

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

Attributes

Applies to