SettingsPropertyIsReadOnlyException 构造函数    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建 SettingsPropertyIsReadOnlyException 类的新实例。
重载
SettingsPropertyIsReadOnlyException()
初始化 SettingsPropertyIsReadOnlyException 类的新实例。
public:
 SettingsPropertyIsReadOnlyException();public SettingsPropertyIsReadOnlyException ();Public Sub New ()适用于
SettingsPropertyIsReadOnlyException(String)
根据提供的参数初始化 SettingsPropertyIsReadOnlyException 类的新实例。
public:
 SettingsPropertyIsReadOnlyException(System::String ^ message);public SettingsPropertyIsReadOnlyException (string message);new System.Configuration.SettingsPropertyIsReadOnlyException : string -> System.Configuration.SettingsPropertyIsReadOnlyExceptionPublic Sub New (message As String)参数
- message
- String
包含异常消息的字符串。
适用于
SettingsPropertyIsReadOnlyException(SerializationInfo, StreamingContext)
注意
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.SettingsPropertyIsReadOnlyExceptionProtected Sub New (info As SerializationInfo, context As StreamingContext)参数
- info
- SerializationInfo
存放有关所引发异常的序列化对象数据的 SerializationInfo 对象。
- context
- StreamingContext
StreamingContext 对象,包含有关序列化流的源或目标的上下文信息。
- 属性
适用于
SettingsPropertyIsReadOnlyException(String, Exception)
基于所提供的参数初始化 SettingsPropertyIsReadOnlyException 类的新实例。
public:
 SettingsPropertyIsReadOnlyException(System::String ^ message, Exception ^ innerException);public SettingsPropertyIsReadOnlyException (string message, Exception innerException);new System.Configuration.SettingsPropertyIsReadOnlyException : string * Exception -> System.Configuration.SettingsPropertyIsReadOnlyExceptionPublic Sub New (message As String, innerException As Exception)参数
- message
- String
包含异常消息的字符串。
- innerException
- Exception
导致当前异常的异常。