Edit

Share via


SettingsPropertyWrongTypeException Constructors

Definition

Initializes a new instance of the SettingsPropertyWrongTypeException class.

Overloads

SettingsPropertyWrongTypeException()

Initializes a new instance of the SettingsPropertyWrongTypeException class.

SettingsPropertyWrongTypeException(String)

Initializes a new instance of the SettingsPropertyWrongTypeException class based on the supplied parameter.

SettingsPropertyWrongTypeException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the SettingsPropertyWrongTypeException class based on the supplied parameters.

SettingsPropertyWrongTypeException(String, Exception)

Initializes a new instance of the SettingsPropertyWrongTypeException class based on the supplied parameters.

SettingsPropertyWrongTypeException()

Source:
SettingsPropertyWrongTypeException.cs
Source:
SettingsPropertyWrongTypeException.cs
Source:
SettingsPropertyWrongTypeException.cs
Source:
SettingsPropertyWrongTypeException.cs
Source:
SettingsPropertyWrongTypeException.cs

Initializes a new instance of the SettingsPropertyWrongTypeException class.

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

Applies to

SettingsPropertyWrongTypeException(String)

Source:
SettingsPropertyWrongTypeException.cs
Source:
SettingsPropertyWrongTypeException.cs
Source:
SettingsPropertyWrongTypeException.cs
Source:
SettingsPropertyWrongTypeException.cs
Source:
SettingsPropertyWrongTypeException.cs

Initializes a new instance of the SettingsPropertyWrongTypeException class based on the supplied parameter.

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

Parameters

message
String

A string containing an exception message.

Applies to

SettingsPropertyWrongTypeException(SerializationInfo, StreamingContext)

Source:
SettingsPropertyWrongTypeException.cs
Source:
SettingsPropertyWrongTypeException.cs
Source:
SettingsPropertyWrongTypeException.cs
Source:
SettingsPropertyWrongTypeException.cs
Source:
SettingsPropertyWrongTypeException.cs

Caution

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

Initializes a new instance of the SettingsPropertyWrongTypeException class based on the supplied parameters.

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)

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination of the serialized stream.

Attributes

Applies to

SettingsPropertyWrongTypeException(String, Exception)

Source:
SettingsPropertyWrongTypeException.cs
Source:
SettingsPropertyWrongTypeException.cs
Source:
SettingsPropertyWrongTypeException.cs
Source:
SettingsPropertyWrongTypeException.cs
Source:
SettingsPropertyWrongTypeException.cs

Initializes a new instance of the SettingsPropertyWrongTypeException class based on the supplied parameters.

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)

Parameters

message
String

A string containing an exception message.

innerException
Exception

The exception that is the cause of the current exception.

Applies to