Freigeben über


ActionNotSupportedException Konstruktoren

Definition

Initialisiert eine neue Instanz der ActionNotSupportedException-Klasse.

Überlädt

Name Beschreibung
ActionNotSupportedException()

Initialisiert eine neue Instanz der ActionNotSupportedException-Klasse.

ActionNotSupportedException(String)

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

ActionNotSupportedException(SerializationInfo, StreamingContext)

Initialisiert eine neue Instanz der ActionNotSupportedException Klasse mit den angegebenen Serialisierungsinformationen und streamingkontext.

ActionNotSupportedException(String, Exception)

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

Hinweise

Wenn Sie eine Fehlermeldung an den Benutzer übergeben möchten, verwenden Sie den ActionNotSupportedException(String) Konstruktor.

Wenn Sie eine Fehlermeldung und einen Verweis auf die innere Ausnahme übergeben möchten, die die Ursache der Ausnahme für den Benutzer darstellt, verwenden Sie den ActionNotSupportedException(String, Exception) Konstruktor.

Wenn Sie Serialisierungsinformationen und Streamingkontext übergeben möchten, verwenden Sie den ActionNotSupportedException(SerializationInfo, StreamingContext) Konstruktor.

ActionNotSupportedException()

Quelle:
ActionNotSupportedException.cs
Quelle:
ActionNotSupportedException.cs
Quelle:
ActionNotSupportedException.cs

Initialisiert eine neue Instanz der ActionNotSupportedException-Klasse.

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

Gilt für:

ActionNotSupportedException(String)

Quelle:
ActionNotSupportedException.cs
Quelle:
ActionNotSupportedException.cs
Quelle:
ActionNotSupportedException.cs

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

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

Parameter

message
String

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

Hinweise

Verwenden Sie diesen Konstruktor, wenn Sie eine Fehlermeldung an den Benutzer übergeben möchten. Der Inhalt des Nachrichtenparameters sollte für die vorgesehenen Benutzer verständlich sein.

Gilt für:

ActionNotSupportedException(SerializationInfo, StreamingContext)

Quelle:
ActionNotSupportedException.cs
Quelle:
ActionNotSupportedException.cs
Quelle:
ActionNotSupportedException.cs

Initialisiert eine neue Instanz der ActionNotSupportedException Klasse mit den angegebenen Serialisierungsinformationen und streamingkontext.

protected:
 ActionNotSupportedException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ActionNotSupportedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ServiceModel.ActionNotSupportedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceModel.ActionNotSupportedException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameter

info
SerializationInfo

Die SerializationInfo daten, die zum Serialisieren der Ausnahme erforderlich sind.

context
StreamingContext

Dies StreamingContext gibt die Quelle und das Ziel des Datenstroms an.

Hinweise

Dieser Konstruktor wird während der Deserialisierung aufgerufen, um das über einen Datenstrom übertragene Ausnahmeobjekt zu rekonstruieren.

Gilt für:

ActionNotSupportedException(String, Exception)

Quelle:
ActionNotSupportedException.cs
Quelle:
ActionNotSupportedException.cs
Quelle:
ActionNotSupportedException.cs

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

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

Parameter

message
String

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

innerException
Exception

Dies Exception hat dazu geführt, dass die aktuelle Ausnahme ausgelöst wurde.

Hinweise

Verwenden Sie diesen Konstruktor, wenn Sie eine Fehlermeldung und Informationen zu einer inneren Ausnahme an den Benutzer übergeben möchten. Der Inhalt des Nachrichtenparameters sollte für die vorgesehenen Benutzer verständlich sein.

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

Gilt für: