Freigeben über


CustomAttributeFormatException Konstruktoren

Definition

Initialisiert eine neue Instanz der CustomAttributeFormatException-Klasse.

Überlädt

Name Beschreibung
CustomAttributeFormatException()

Initialisiert eine neue Instanz der CustomAttributeFormatException Klasse mit den Standardeigenschaften.

CustomAttributeFormatException(String)

Initialisiert eine neue Instanz der CustomAttributeFormatException Klasse mit der angegebenen Nachricht.

CustomAttributeFormatException(SerializationInfo, StreamingContext)
Veraltet.

Initialisiert eine neue Instanz der CustomAttributeFormatException Klasse mit den angegebenen Serialisierungs- und Kontextinformationen.

CustomAttributeFormatException(String, Exception)

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

CustomAttributeFormatException()

Quelle:
CustomAttributeFormatException.cs
Quelle:
CustomAttributeFormatException.cs
Quelle:
CustomAttributeFormatException.cs
Quelle:
CustomAttributeFormatException.cs
Quelle:
CustomAttributeFormatException.cs

Initialisiert eine neue Instanz der CustomAttributeFormatException Klasse mit den Standardeigenschaften.

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

Hinweise

Dieser Konstruktor initialisiert eine Instanz mit CustomAttributeFormatException einer leeren Nachrichtenzeichenfolge und dem Ausnahmesatz der Stammursache auf null.

Dieser Konstruktor legt die Eigenschaften des Exception Objekts wie folgt fest:

Eigentum Wert
InnerException null
Message Die leere Zeichenfolge ("").

Gilt für:

CustomAttributeFormatException(String)

Quelle:
CustomAttributeFormatException.cs
Quelle:
CustomAttributeFormatException.cs
Quelle:
CustomAttributeFormatException.cs
Quelle:
CustomAttributeFormatException.cs
Quelle:
CustomAttributeFormatException.cs

Initialisiert eine neue Instanz der CustomAttributeFormatException Klasse mit der angegebenen Nachricht.

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

Parameter

message
String

Die Meldung, die angibt, warum diese Ausnahme ausgelöst wurde.

Hinweise

Dieser Konstruktor legt die Eigenschaften des Exception-Objekts wie folgt fest:

Eigentum Wert
InnerException null

Weitere Informationen

Gilt für:

CustomAttributeFormatException(SerializationInfo, StreamingContext)

Quelle:
CustomAttributeFormatException.cs
Quelle:
CustomAttributeFormatException.cs
Quelle:
CustomAttributeFormatException.cs
Quelle:
CustomAttributeFormatException.cs
Quelle:
CustomAttributeFormatException.cs

Achtung

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

Initialisiert eine neue Instanz der CustomAttributeFormatException Klasse mit den angegebenen Serialisierungs- und Kontextinformationen.

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

Parameter

info
SerializationInfo

Die Daten zum Serialisieren oder Deserialisieren des benutzerdefinierten Attributs.

context
StreamingContext

Die Quelle und das Ziel für das benutzerdefinierte Attribut.

Attribute

Gilt für:

CustomAttributeFormatException(String, Exception)

Quelle:
CustomAttributeFormatException.cs
Quelle:
CustomAttributeFormatException.cs
Quelle:
CustomAttributeFormatException.cs
Quelle:
CustomAttributeFormatException.cs
Quelle:
CustomAttributeFormatException.cs

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

public:
 CustomAttributeFormatException(System::String ^ message, Exception ^ inner);
public CustomAttributeFormatException(string? message, Exception? inner);
public CustomAttributeFormatException(string message, Exception inner);
new System.Reflection.CustomAttributeFormatException : string * Exception -> System.Reflection.CustomAttributeFormatException
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 CustomAttributeFormatException.

Eigentum Wert
InnerException Die inner Ausnahme.
Message Die Fehlermeldungszeichenfolge.

Weitere Informationen

Gilt für: