MissingPrimaryKeyException Konstruktoren

Definition

Initialisiert eine neue Instanz der MissingPrimaryKeyException-Klasse.

Überlädt

Name Beschreibung
MissingPrimaryKeyException()

Initialisiert eine neue Instanz der MissingPrimaryKeyException-Klasse.

MissingPrimaryKeyException(String)

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

MissingPrimaryKeyException(SerializationInfo, StreamingContext)
Veraltet.

Initialisiert eine neue Instanz der MissingPrimaryKeyException Klasse mit Serialisierungsinformationen.

MissingPrimaryKeyException(String, Exception)

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

MissingPrimaryKeyException()

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

Initialisiert eine neue Instanz der MissingPrimaryKeyException-Klasse.

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

Gilt für:

MissingPrimaryKeyException(String)

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

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

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

Parameter

s
String

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

Gilt für:

MissingPrimaryKeyException(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 MissingPrimaryKeyException Klasse mit Serialisierungsinformationen.

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

Parameter

info
SerializationInfo

Die Daten, die zum Serialisieren oder Deserialisieren eines Objekts erforderlich sind.

context
StreamingContext

Eine Beschreibung der Quelle und des Ziels des angegebenen serialisierten Datenstroms.

Attribute

Weitere Informationen

Gilt für:

MissingPrimaryKeyException(String, Exception)

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

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

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

Parameter

message
String

Die Fehlermeldung, die den Grund für die Ausnahme erläutert.

innerException
Exception

Die Ausnahme, die die Ursache der aktuellen Ausnahme ist, oder ein Nullverweis (Nothing in Visual Basic), wenn keine innere Ausnahme angegeben wird.

Gilt für: