SettingsPropertyNotFoundException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 SettingsPropertyNotFoundException 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| SettingsPropertyNotFoundException() |
初始化 SettingsPropertyNotFoundException 类的新实例。 |
| SettingsPropertyNotFoundException(String) |
根据提供的参数初始化类的新实例 SettingsPropertyNotFoundException 。 |
| SettingsPropertyNotFoundException(SerializationInfo, StreamingContext) |
已过时.
根据提供的参数初始化类的新实例 SettingsPropertyNotFoundException 。 |
| SettingsPropertyNotFoundException(String, Exception) |
根据提供的参数初始化类的新实例 SettingsPropertyNotFoundException 。 |
SettingsPropertyNotFoundException()
初始化 SettingsPropertyNotFoundException 类的新实例。
public:
SettingsPropertyNotFoundException();
public SettingsPropertyNotFoundException();
Public Sub New ()
适用于
SettingsPropertyNotFoundException(String)
根据提供的参数初始化类的新实例 SettingsPropertyNotFoundException 。
public:
SettingsPropertyNotFoundException(System::String ^ message);
public SettingsPropertyNotFoundException(string message);
new System.Configuration.SettingsPropertyNotFoundException : string -> System.Configuration.SettingsPropertyNotFoundException
Public Sub New (message As String)
参数
- message
- String
包含异常消息的字符串。
适用于
SettingsPropertyNotFoundException(SerializationInfo, StreamingContext)
注意
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
根据提供的参数初始化类的新实例 SettingsPropertyNotFoundException 。
protected:
SettingsPropertyNotFoundException(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 SettingsPropertyNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected SettingsPropertyNotFoundException(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.SettingsPropertyNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Configuration.SettingsPropertyNotFoundException
new System.Configuration.SettingsPropertyNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Configuration.SettingsPropertyNotFoundException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
保存 SerializationInfo 所引发异常的序列化对象数据的对象。
- context
- StreamingContext
StreamingContext包含有关序列化流的源或目标的上下文信息的对象。
- 属性
适用于
SettingsPropertyNotFoundException(String, Exception)
根据提供的参数初始化类的新实例 SettingsPropertyNotFoundException 。
public:
SettingsPropertyNotFoundException(System::String ^ message, Exception ^ innerException);
public SettingsPropertyNotFoundException(string message, Exception innerException);
new System.Configuration.SettingsPropertyNotFoundException : string * Exception -> System.Configuration.SettingsPropertyNotFoundException
Public Sub New (message As String, innerException As Exception)
参数
- message
- String
包含异常消息的字符串。
- innerException
- Exception
是当前异常原因的异常。