Freigeben über


PlatformNotSupportedException Konstruktoren

Definition

Initialisiert eine neue Instanz der PlatformNotSupportedException-Klasse.

Überlädt

Name Beschreibung
PlatformNotSupportedException()

Initialisiert eine neue Instanz der PlatformNotSupportedException Klasse mit Standardeigenschaften.

PlatformNotSupportedException(String)

Initialisiert eine neue Instanz der PlatformNotSupportedException Klasse mit einer angegebenen Fehlermeldung.

PlatformNotSupportedException(SerializationInfo, StreamingContext)
Veraltet.

Initialisiert eine neue Instanz der PlatformNotSupportedException Klasse mit serialisierten Daten.

PlatformNotSupportedException(String, Exception)

Initialisiert eine neue Instanz der PlatformNotSupportedException Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die die Ursache dieser Ausnahme ist.

PlatformNotSupportedException()

Quelle:
PlatformNotSupportedException.cs
Quelle:
PlatformNotSupportedException.cs
Quelle:
PlatformNotSupportedException.cs
Quelle:
PlatformNotSupportedException.cs
Quelle:
PlatformNotSupportedException.cs

Initialisiert eine neue Instanz der PlatformNotSupportedException Klasse mit Standardeigenschaften.

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

Hinweise

Wenn eine Instanz der PlatformNotSupportedException Klasse durch einen Aufruf dieses Konstruktors erstellt wird, werden die folgenden Eigenschaften für die angegebenen Werte initialisiert:

Eigentum Wert
InnerException null.
Message Die leere Zeichenfolge.

Gilt für:

PlatformNotSupportedException(String)

Quelle:
PlatformNotSupportedException.cs
Quelle:
PlatformNotSupportedException.cs
Quelle:
PlatformNotSupportedException.cs
Quelle:
PlatformNotSupportedException.cs
Quelle:
PlatformNotSupportedException.cs

Initialisiert eine neue Instanz der PlatformNotSupportedException Klasse mit einer angegebenen Fehlermeldung.

public:
 PlatformNotSupportedException(System::String ^ message);
public PlatformNotSupportedException(string message);
public PlatformNotSupportedException(string? message);
new PlatformNotSupportedException : string -> PlatformNotSupportedException
Public Sub New (message As String)

Parameter

message
String

Die Textnachricht, die den Grund für die Ausnahme erklärt.

Hinweise

Wenn eine Instanz der PlatformNotSupportedException Klasse durch einen Aufruf dieses Konstruktors erstellt wird, werden die folgenden Eigenschaften für die angegebenen Werte initialisiert:

Eigentum Wert
InnerException null.
Message Die Fehlermeldungszeichenfolge.

Gilt für:

PlatformNotSupportedException(SerializationInfo, StreamingContext)

Quelle:
PlatformNotSupportedException.cs
Quelle:
PlatformNotSupportedException.cs
Quelle:
PlatformNotSupportedException.cs
Quelle:
PlatformNotSupportedException.cs
Quelle:
PlatformNotSupportedException.cs

Achtung

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

Initialisiert eine neue Instanz der PlatformNotSupportedException Klasse mit serialisierten Daten.

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

Parameter

info
SerializationInfo

Das SerializationInfo Objekt enthält die serialisierten Objektdaten zu der Ausnahme, die ausgelöst wird.

context
StreamingContext

Die StreamingContext kontextbezogene Informationen zur Quelle oder zum Ziel.

Attribute

Gilt für:

PlatformNotSupportedException(String, Exception)

Quelle:
PlatformNotSupportedException.cs
Quelle:
PlatformNotSupportedException.cs
Quelle:
PlatformNotSupportedException.cs
Quelle:
PlatformNotSupportedException.cs
Quelle:
PlatformNotSupportedException.cs

Initialisiert eine neue Instanz der PlatformNotSupportedException Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die die Ursache dieser Ausnahme ist.

public:
 PlatformNotSupportedException(System::String ^ message, Exception ^ inner);
public PlatformNotSupportedException(string message, Exception inner);
public PlatformNotSupportedException(string? message, Exception? inner);
new PlatformNotSupportedException : string * Exception -> PlatformNotSupportedException
Public Sub New (message As String, inner As Exception)

Parameter

message
String

Die Fehlermeldung, die den Grund für die Ausnahme erklärt.

inner
Exception

Die Ausnahme, die die Ursache der aktuellen Ausnahme ist. Wenn der inner Parameter nicht nullangegeben ist, wird die aktuelle Ausnahme in einem catch Block ausgelöst, der die innere Ausnahme behandelt.

Hinweise

Eine Ausnahme, die als direktes Ergebnis einer vorherigen Ausnahme ausgelöst wird, sollte einen Verweis auf die vorherige Ausnahme in der InnerException Eigenschaft enthalten. Die InnerException Eigenschaft gibt denselben Wert zurück, der an den Konstruktor übergeben wird, oder null wenn die InnerException Eigenschaft den inneren Ausnahmewert nicht für den Konstruktor angibt.

In der folgenden Tabelle sind die anfänglichen Eigenschaftswerte für eine Instanz von PlatformNotSupportedException.

Eigentum Wert
InnerException Der interne Ausnahmeverweis.
Message Die Fehlermeldungszeichenfolge.

Gilt für: