ConstraintException Konstruktoren

Definition

Initialisiert eine neue Instanz der ConstraintException-Klasse.

Überlädt

Name Beschreibung
ConstraintException()

Initialisiert eine neue Instanz der ConstraintException-Klasse. Dies ist der parameterlose Konstruktor.

ConstraintException(String)

Initialisiert eine neue Instanz der ConstraintException Klasse mit der angegebenen Zeichenfolge.

ConstraintException(SerializationInfo, StreamingContext)
Veraltet.

Initialisiert eine neue Instanz der Klasse mithilfe der ConstraintException angegebenen Serialisierung und des Datenstromkontexts.

ConstraintException(String, Exception)

Initialisiert eine neue Instanz der Klasse mithilfe der ConstraintException angegebenen Zeichenfolge und inneren Ausnahme.

ConstraintException()

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

Initialisiert eine neue Instanz der ConstraintException-Klasse. Dies ist der parameterlose Konstruktor.

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

Gilt für:

ConstraintException(String)

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

Initialisiert eine neue Instanz der ConstraintException Klasse mit der angegebenen Zeichenfolge.

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

Parameter

s
String

Die Zeichenfolge, die angezeigt werden soll, wenn die Ausnahme ausgelöst wird.

Gilt für:

ConstraintException(SerializationInfo, StreamingContext)

Quelle:
DataException.cs
Quelle:
DataException.cs
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 Klasse mithilfe der ConstraintException angegebenen Serialisierung und des Datenstromkontexts.

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

Parameter

info
SerializationInfo

Die zum Serialisieren oder Deserialisieren eines Objekts erforderlichen Daten.

context
StreamingContext

Beschreibung der Quelle und des Ziels des angegebenen serialisierten Datenstroms.

Attribute

Gilt für:

ConstraintException(String, Exception)

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

Initialisiert eine neue Instanz der Klasse mithilfe der ConstraintException angegebenen Zeichenfolge und inneren Ausnahme.

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

Parameter

message
String

Die Zeichenfolge, die angezeigt werden soll, wenn die Ausnahme ausgelöst wird.

innerException
Exception

Ruft die Exception Instanz ab, die die aktuelle Ausnahme verursacht hat.

Gilt für: