NoNullAllowedException Konstruktoren

Definition

Initialisiert eine neue Instanz der NoNullAllowedException-Klasse.

Überlädt

NoNullAllowedException()

Initialisiert eine neue Instanz der NoNullAllowedException-Klasse.

NoNullAllowedException(String)

Initialisiert eine neue Instanz der NoNullAllowedException-Klasse mit der angegebenen Zeichenfolge.

NoNullAllowedException(SerializationInfo, StreamingContext)
Veraltet.

Initialisiert eine neue Instanz der NoNullAllowedException-Klasse mit Serialisierungsinformationen.

NoNullAllowedException(String, Exception)

Initialisiert eine neue Instanz der NoNullAllowedException-Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die diese Ausnahme ausgelöst hat.

NoNullAllowedException()

Quelle:
DataException.cs
Quelle:
DataException.cs
Quelle:
DataException.cs

Initialisiert eine neue Instanz der NoNullAllowedException-Klasse.

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

Gilt für:

NoNullAllowedException(String)

Quelle:
DataException.cs
Quelle:
DataException.cs
Quelle:
DataException.cs

Initialisiert eine neue Instanz der NoNullAllowedException-Klasse mit der angegebenen Zeichenfolge.

public:
 NoNullAllowedException(System::String ^ s);
public NoNullAllowedException (string? s);
public NoNullAllowedException (string s);
new System.Data.NoNullAllowedException : string -> System.Data.NoNullAllowedException
Public Sub New (s As String)

Parameter

s
String

Die Zeichenfolge, die beim Auslösen der Ausnahme angezeigt werden soll.

Gilt für:

NoNullAllowedException(SerializationInfo, StreamingContext)

Quelle:
DataException.cs
Quelle:
DataException.cs
Quelle:
DataException.cs

Achtung

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

Initialisiert eine neue Instanz der NoNullAllowedException-Klasse mit Serialisierungsinformationen.

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

Parameter

info
SerializationInfo

Die zum Serialisieren bzw. Deserialisieren eines Objekts benötigten Daten.

context
StreamingContext

Beschreibung der Quelle und des Ziels des angegebenen serialisierten Streams.

Attribute

Weitere Informationen

Gilt für:

NoNullAllowedException(String, Exception)

Quelle:
DataException.cs
Quelle:
DataException.cs
Quelle:
DataException.cs

Initialisiert eine neue Instanz der NoNullAllowedException-Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die diese Ausnahme ausgelöst hat.

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

Parameter

message
String

Die Fehlermeldung, in der die Ursache der Ausnahme erklärt wird.

innerException
Exception

Die Ausnahme, die die aktuelle Ausnahme verursacht hat, oder ein Nullverweis (Nothing in Visual Basic), wenn keine innere Ausnahme angegeben ist.

Gilt für: