共用方式為


SettingsPropertyWrongTypeException 建構函式

定義

初始化 SettingsPropertyWrongTypeException 類別的新執行個體。

多載

SettingsPropertyWrongTypeException()

初始化 SettingsPropertyWrongTypeException 類別的新執行個體。

SettingsPropertyWrongTypeException(String)

根據提供的參數,初始化 SettingsPropertyWrongTypeException 類別的新執行個體。

SettingsPropertyWrongTypeException(SerializationInfo, StreamingContext)
已淘汰.

根據提供的參數,初始化 SettingsPropertyWrongTypeException 類別的新執行個體。

SettingsPropertyWrongTypeException(String, Exception)

根據提供的參數,初始化 SettingsPropertyWrongTypeException 類別的新執行個體。

SettingsPropertyWrongTypeException()

來源:
SettingsPropertyWrongTypeException.cs
來源:
SettingsPropertyWrongTypeException.cs
來源:
SettingsPropertyWrongTypeException.cs

初始化 SettingsPropertyWrongTypeException 類別的新執行個體。

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

適用於

SettingsPropertyWrongTypeException(String)

來源:
SettingsPropertyWrongTypeException.cs
來源:
SettingsPropertyWrongTypeException.cs
來源:
SettingsPropertyWrongTypeException.cs

根據提供的參數,初始化 SettingsPropertyWrongTypeException 類別的新執行個體。

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

參數

message
String

包含例外狀況訊息的字串。

適用於

SettingsPropertyWrongTypeException(SerializationInfo, StreamingContext)

來源:
SettingsPropertyWrongTypeException.cs
來源:
SettingsPropertyWrongTypeException.cs
來源:
SettingsPropertyWrongTypeException.cs

警告

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

根據提供的參數,初始化 SettingsPropertyWrongTypeException 類別的新執行個體。

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

參數

info
SerializationInfo

SerializationInfo,包含所擲回之例外狀況的相關序列化物件資料。

context
StreamingContext

StreamingContext,包含關於序列化資料流之來源或目的端的內容資訊。

屬性

適用於

SettingsPropertyWrongTypeException(String, Exception)

來源:
SettingsPropertyWrongTypeException.cs
來源:
SettingsPropertyWrongTypeException.cs
來源:
SettingsPropertyWrongTypeException.cs

根據提供的參數,初始化 SettingsPropertyWrongTypeException 類別的新執行個體。

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

參數

message
String

包含例外狀況訊息的字串。

innerException
Exception

做為目前例外狀況發生原因的例外狀況。

適用於