Share via


MissingPrimaryKeyException Konstruktoren

Definition

Initialisiert eine neue Instanz der MissingPrimaryKeyException-Klasse.

Überlädt

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 diese Ausnahme ausgelöst hat.

MissingPrimaryKeyException()

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

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 beim Auslösen der Ausnahme angezeigt werden soll.

Gilt für:

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

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

Parameter

info
SerializationInfo

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

context
StreamingContext

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

Attribute

Weitere Informationen

Gilt für:

MissingPrimaryKeyException(String, Exception)

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 diese Ausnahme ausgelöst hat.

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, 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: