SettingsPropertyWrongTypeException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 SettingsPropertyWrongTypeException 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| SettingsPropertyWrongTypeException() |
初始化 SettingsPropertyWrongTypeException 類別的新執行個體。 |
| SettingsPropertyWrongTypeException(String) |
根據所提供的參數初始化類別的新實例 SettingsPropertyWrongTypeException 。 |
| SettingsPropertyWrongTypeException(SerializationInfo, StreamingContext) |
已淘汰.
根據所提供的參數初始化類別的新實例 SettingsPropertyWrongTypeException 。 |
| SettingsPropertyWrongTypeException(String, Exception) |
根據所提供的參數初始化類別的新實例 SettingsPropertyWrongTypeException 。 |
SettingsPropertyWrongTypeException()
初始化 SettingsPropertyWrongTypeException 類別的新執行個體。
public:
SettingsPropertyWrongTypeException();
public SettingsPropertyWrongTypeException();
Public Sub New ()
適用於
SettingsPropertyWrongTypeException(String)
根據所提供的參數初始化類別的新實例 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)
警告
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);
[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);
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}")>]
new System.Configuration.SettingsPropertyWrongTypeException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Configuration.SettingsPropertyWrongTypeException
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
the StreamingContext that 包含序列化串流來源或目的地的上下文資訊。
- 屬性
適用於
SettingsPropertyWrongTypeException(String, Exception)
根據所提供的參數初始化類別的新實例 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
該例外即為當前例外的原因。