SettingsPropertyIsReadOnlyException 构造函数

定义

创建 SettingsPropertyIsReadOnlyException 类的新实例。

重载

SettingsPropertyIsReadOnlyException()

初始化 SettingsPropertyIsReadOnlyException 类的新实例。

SettingsPropertyIsReadOnlyException(String)

根据提供的参数初始化 SettingsPropertyIsReadOnlyException 类的新实例。

SettingsPropertyIsReadOnlyException(SerializationInfo, StreamingContext)
已过时.

基于所提供的参数初始化 SettingsPropertyIsReadOnlyException 类的新实例。

SettingsPropertyIsReadOnlyException(String, Exception)

基于所提供的参数初始化 SettingsPropertyIsReadOnlyException 类的新实例。

SettingsPropertyIsReadOnlyException()

Source:
SettingsPropertyIsReadOnlyException.cs
Source:
SettingsPropertyIsReadOnlyException.cs
Source:
SettingsPropertyIsReadOnlyException.cs

初始化 SettingsPropertyIsReadOnlyException 类的新实例。

public:
 SettingsPropertyIsReadOnlyException();
public SettingsPropertyIsReadOnlyException ();
Public Sub New ()

适用于

SettingsPropertyIsReadOnlyException(String)

Source:
SettingsPropertyIsReadOnlyException.cs
Source:
SettingsPropertyIsReadOnlyException.cs
Source:
SettingsPropertyIsReadOnlyException.cs

根据提供的参数初始化 SettingsPropertyIsReadOnlyException 类的新实例。

public:
 SettingsPropertyIsReadOnlyException(System::String ^ message);
public SettingsPropertyIsReadOnlyException (string message);
new System.Configuration.SettingsPropertyIsReadOnlyException : string -> System.Configuration.SettingsPropertyIsReadOnlyException
Public Sub New (message As String)

参数

message
String

包含异常消息的字符串。

适用于

SettingsPropertyIsReadOnlyException(SerializationInfo, StreamingContext)

Source:
SettingsPropertyIsReadOnlyException.cs
Source:
SettingsPropertyIsReadOnlyException.cs
Source:
SettingsPropertyIsReadOnlyException.cs

注意

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

基于所提供的参数初始化 SettingsPropertyIsReadOnlyException 类的新实例。

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

参数

info
SerializationInfo

存放有关所引发异常的序列化对象数据的 SerializationInfo 对象。

context
StreamingContext

StreamingContext 对象,包含有关序列化流的源或目标的上下文信息。

属性

适用于

SettingsPropertyIsReadOnlyException(String, Exception)

Source:
SettingsPropertyIsReadOnlyException.cs
Source:
SettingsPropertyIsReadOnlyException.cs
Source:
SettingsPropertyIsReadOnlyException.cs

基于所提供的参数初始化 SettingsPropertyIsReadOnlyException 类的新实例。

public:
 SettingsPropertyIsReadOnlyException(System::String ^ message, Exception ^ innerException);
public SettingsPropertyIsReadOnlyException (string message, Exception innerException);
new System.Configuration.SettingsPropertyIsReadOnlyException : string * Exception -> System.Configuration.SettingsPropertyIsReadOnlyException
Public Sub New (message As String, innerException As Exception)

参数

message
String

包含异常消息的字符串。

innerException
Exception

导致当前异常的异常。

适用于