ConfigurationException 构造函数

定义

初始化 ConfigurationException 类的新实例。

重载

ConfigurationException()
已过时.
已过时.

初始化 ConfigurationException 类的新实例。

ConfigurationException(String)
已过时.
已过时.

初始化 ConfigurationException 类的新实例。

ConfigurationException(SerializationInfo, StreamingContext)
已过时.

初始化 ConfigurationException 类的新实例。

ConfigurationException(String, Exception)
已过时.
已过时.

初始化 ConfigurationException 类的新实例。

ConfigurationException(String, XmlNode)
已过时.
已过时.

初始化 ConfigurationException 类的新实例。

ConfigurationException(String, Exception, XmlNode)
已过时.
已过时.

初始化 ConfigurationException 类的新实例。

ConfigurationException(String, String, Int32)
已过时.
已过时.

初始化 ConfigurationException 类的新实例。

ConfigurationException(String, Exception, String, Int32)
已过时.
已过时.

初始化 ConfigurationException 类的新实例。

ConfigurationException()

Source:
ConfigurationException.cs
Source:
ConfigurationException.cs
Source:
ConfigurationException.cs

注意

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

注意

ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.

初始化 ConfigurationException 类的新实例。

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

适用于

ConfigurationException(String)

Source:
ConfigurationException.cs
Source:
ConfigurationException.cs
Source:
ConfigurationException.cs

注意

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

注意

ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.

初始化 ConfigurationException 类的新实例。

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);
[System.Obsolete("ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.")]
public ConfigurationException (string message);
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
[<System.Obsolete("ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.")>]
new System.Configuration.ConfigurationException : string -> System.Configuration.ConfigurationException
new System.Configuration.ConfigurationException : string -> System.Configuration.ConfigurationException
Public Sub New (message As String)

参数

message
String

描述引发该 ConfigurationException 异常的原因的消息。

属性

适用于

ConfigurationException(SerializationInfo, StreamingContext)

Source:
ConfigurationException.cs
Source:
ConfigurationException.cs
Source:
ConfigurationException.cs

注意

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

初始化 ConfigurationException 类的新实例。

protected:
 ConfigurationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ConfigurationException (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 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
[<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.ConfigurationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Configuration.ConfigurationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

包含要反序列化的信息的对象。

context
StreamingContext

有关源或目标的上下文信息。

属性

适用于

ConfigurationException(String, Exception)

Source:
ConfigurationException.cs
Source:
ConfigurationException.cs
Source:
ConfigurationException.cs

注意

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

注意

ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.

初始化 ConfigurationException 类的新实例。

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);
[System.Obsolete("ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.")]
public ConfigurationException (string message, Exception inner);
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
[<System.Obsolete("ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.")>]
new System.Configuration.ConfigurationException : string * Exception -> System.Configuration.ConfigurationException
new System.Configuration.ConfigurationException : string * Exception -> System.Configuration.ConfigurationException
Public Sub New (message As String, inner As Exception)

参数

message
String

描述引发该 ConfigurationException 异常的原因的消息。

inner
Exception

导致引发此 ConfigurationException 的内部异常(如果有)。

属性

适用于

ConfigurationException(String, XmlNode)

Source:
ConfigurationException.cs
Source:
ConfigurationException.cs
Source:
ConfigurationException.cs

注意

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

注意

ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.

初始化 ConfigurationException 类的新实例。

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);
[System.Obsolete("ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.")]
public ConfigurationException (string message, System.Xml.XmlNode node);
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
[<System.Obsolete("ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.")>]
new System.Configuration.ConfigurationException : string * System.Xml.XmlNode -> System.Configuration.ConfigurationException
new System.Configuration.ConfigurationException : string * System.Xml.XmlNode -> System.Configuration.ConfigurationException
Public Sub New (message As String, node As XmlNode)

参数

message
String

描述引发该 ConfigurationException 异常的原因的消息。

node
XmlNode

导致引发此 XmlNodeConfigurationException

属性

适用于

ConfigurationException(String, Exception, XmlNode)

Source:
ConfigurationException.cs
Source:
ConfigurationException.cs
Source:
ConfigurationException.cs

注意

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

注意

ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.

初始化 ConfigurationException 类的新实例。

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);
[System.Obsolete("ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.")]
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, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException")>]
new System.Configuration.ConfigurationException : string * Exception * System.Xml.XmlNode -> System.Configuration.ConfigurationException
[<System.Obsolete("ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.")>]
new System.Configuration.ConfigurationException : string * Exception * System.Xml.XmlNode -> System.Configuration.ConfigurationException
new System.Configuration.ConfigurationException : string * Exception * System.Xml.XmlNode -> System.Configuration.ConfigurationException
Public Sub New (message As String, inner As Exception, node As XmlNode)

参数

message
String

描述引发该 ConfigurationException 异常的原因的消息。

inner
Exception

导致引发此 ConfigurationException 的内部异常(如果有)。

node
XmlNode

导致引发此 XmlNodeConfigurationException

属性

适用于

ConfigurationException(String, String, Int32)

Source:
ConfigurationException.cs
Source:
ConfigurationException.cs
Source:
ConfigurationException.cs

注意

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

注意

ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.

初始化 ConfigurationException 类的新实例。

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);
[System.Obsolete("ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.")]
public ConfigurationException (string message, string filename, int line);
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
[<System.Obsolete("ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.")>]
new System.Configuration.ConfigurationException : string * string * int -> System.Configuration.ConfigurationException
new System.Configuration.ConfigurationException : string * string * int -> System.Configuration.ConfigurationException
Public Sub New (message As String, filename As String, line As Integer)

参数

message
String

描述引发该 ConfigurationException 异常的原因的消息。

filename
String

导致引发此 ConfigurationException 的配置文件的路径。

line
Int32

配置文件中引发此 ConfigurationException 处的行号。

属性

适用于

ConfigurationException(String, Exception, String, Int32)

Source:
ConfigurationException.cs
Source:
ConfigurationException.cs
Source:
ConfigurationException.cs

注意

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

注意

ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.

初始化 ConfigurationException 类的新实例。

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);
[System.Obsolete("ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.")]
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, to create a new exception create a System.Configuration!System.Configuration.ConfigurationErrorsException")>]
new System.Configuration.ConfigurationException : string * Exception * string * int -> System.Configuration.ConfigurationException
[<System.Obsolete("ConfigurationException has been deprecated. Use System.Configuration.ConfigurationErrorsException instead.")>]
new System.Configuration.ConfigurationException : string * Exception * string * int -> System.Configuration.ConfigurationException
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)

参数

message
String

描述引发该 ConfigurationException 异常的原因的消息。

inner
Exception

导致引发此 ConfigurationException 的内部异常(如果有)。

filename
String

导致引发此 ConfigurationException 的配置文件的路径。

line
Int32

配置文件中引发此 ConfigurationException 处的行号。

属性

适用于