ConfigurationErrorsException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ConfigurationErrorsException class.
Overloads
ConfigurationErrorsException()
Initializes a new instance of the ConfigurationErrorsException class.
public:
ConfigurationErrorsException();
public ConfigurationErrorsException ();
Public Sub New ()
Applies to
ConfigurationErrorsException(String, String, Int32)
Initializes a new instance of the ConfigurationErrorsException class.
public:
ConfigurationErrorsException(System::String ^ message, System::String ^ filename, int line);
public ConfigurationErrorsException (string message, string filename, int line);
new System.Configuration.ConfigurationErrorsException : string * string * int -> System.Configuration.ConfigurationErrorsException
Public Sub New (message As String, filename As String, line As Integer)
Parameters
- message
- String
A message that describes why this ConfigurationErrorsException exception was thrown.
- filename
- String
The path to the configuration file that caused this ConfigurationErrorsException exception to be thrown.
- line
- Int32
The line number within the configuration file at which this ConfigurationErrorsException exception was thrown.
Applies to
ConfigurationErrorsException(String, Exception, XmlReader)
Initializes a new instance of the ConfigurationErrorsException class.
public:
ConfigurationErrorsException(System::String ^ message, Exception ^ inner, System::Xml::XmlReader ^ reader);
public ConfigurationErrorsException (string message, Exception inner, System.Xml.XmlReader reader);
new System.Configuration.ConfigurationErrorsException : string * Exception * System.Xml.XmlReader -> System.Configuration.ConfigurationErrorsException
Public Sub New (message As String, inner As Exception, reader As XmlReader)
Parameters
- message
- String
A message that describes why this ConfigurationErrorsException exception was thrown.
- inner
- Exception
The inner exception that caused this ConfigurationErrorsException exception to be thrown.
- reader
- XmlReader
The XmlReader object that caused this ConfigurationErrorsException exception to be thrown.
Applies to
ConfigurationErrorsException(String, Exception, XmlNode)
Initializes a new instance of the ConfigurationErrorsException class.
public:
ConfigurationErrorsException(System::String ^ message, Exception ^ inner, System::Xml::XmlNode ^ node);
public ConfigurationErrorsException (string message, Exception inner, System.Xml.XmlNode node);
new System.Configuration.ConfigurationErrorsException : string * Exception * System.Xml.XmlNode -> System.Configuration.ConfigurationErrorsException
Public Sub New (message As String, inner As Exception, node As XmlNode)
Parameters
- message
- String
A message that describes why this ConfigurationErrorsException exception was thrown.
- inner
- Exception
The inner exception that caused this ConfigurationErrorsException exception to be thrown.
- node
- XmlNode
The XmlNode object that caused this ConfigurationErrorsException exception to be thrown.
Applies to
ConfigurationErrorsException(String, XmlReader)
Initializes a new instance of the ConfigurationErrorsException class.
public:
ConfigurationErrorsException(System::String ^ message, System::Xml::XmlReader ^ reader);
public ConfigurationErrorsException (string message, System.Xml.XmlReader reader);
new System.Configuration.ConfigurationErrorsException : string * System.Xml.XmlReader -> System.Configuration.ConfigurationErrorsException
Public Sub New (message As String, reader As XmlReader)
Parameters
- message
- String
A message that describes why this ConfigurationErrorsException exception was thrown.
- reader
- XmlReader
The XmlReader object that caused this ConfigurationErrorsException exception to be thrown.
Applies to
ConfigurationErrorsException(String, Exception, String, Int32)
Initializes a new instance of the ConfigurationErrorsException class.
public:
ConfigurationErrorsException(System::String ^ message, Exception ^ inner, System::String ^ filename, int line);
public ConfigurationErrorsException (string message, Exception inner, string filename, int line);
new System.Configuration.ConfigurationErrorsException : string * Exception * string * int -> System.Configuration.ConfigurationErrorsException
Public Sub New (message As String, inner As Exception, filename As String, line As Integer)
Parameters
- message
- String
A message that describes why this ConfigurationErrorsException exception was thrown.
- inner
- Exception
The inner exception that caused this ConfigurationErrorsException exception to be thrown.
- filename
- String
The path to the configuration file that caused this ConfigurationErrorsException exception to be thrown.
- line
- Int32
The line number within the configuration file at which this ConfigurationErrorsException exception was thrown.
Applies to
ConfigurationErrorsException(String, Exception)
Initializes a new instance of the ConfigurationErrorsException class.
public:
ConfigurationErrorsException(System::String ^ message, Exception ^ inner);
public ConfigurationErrorsException (string message, Exception inner);
new System.Configuration.ConfigurationErrorsException : string * Exception -> System.Configuration.ConfigurationErrorsException
Public Sub New (message As String, inner As Exception)
Parameters
- message
- String
A message that describes why this ConfigurationErrorsException exception was thrown.
- inner
- Exception
The exception that caused this ConfigurationErrorsException exception to be thrown.
Applies to
ConfigurationErrorsException(SerializationInfo, StreamingContext)
Caution
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Initializes a new instance of the ConfigurationErrorsException class.
protected:
ConfigurationErrorsException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected ConfigurationErrorsException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected ConfigurationErrorsException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Configuration.ConfigurationErrorsException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Configuration.ConfigurationErrorsException
new System.Configuration.ConfigurationErrorsException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Configuration.ConfigurationErrorsException
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.
- Attributes
Exceptions
The current type is not a ConfigurationException or a ConfigurationErrorsException.
Applies to
ConfigurationErrorsException(String)
Initializes a new instance of the ConfigurationErrorsException class.
public:
ConfigurationErrorsException(System::String ^ message);
public ConfigurationErrorsException (string message);
new System.Configuration.ConfigurationErrorsException : string -> System.Configuration.ConfigurationErrorsException
Public Sub New (message As String)
Parameters
- message
- String
A message that describes why this ConfigurationErrorsException exception was thrown.
Applies to
ConfigurationErrorsException(String, XmlNode)
Initializes a new instance of the ConfigurationErrorsException class.
public:
ConfigurationErrorsException(System::String ^ message, System::Xml::XmlNode ^ node);
public ConfigurationErrorsException (string message, System.Xml.XmlNode node);
new System.Configuration.ConfigurationErrorsException : string * System.Xml.XmlNode -> System.Configuration.ConfigurationErrorsException
Public Sub New (message As String, node As XmlNode)
Parameters
- message
- String
A message that describes why this ConfigurationErrorsException exception was thrown.
- node
- XmlNode
The XmlNode object that caused this ConfigurationErrorsException exception to be thrown.
Applies to
.NET