MissingPrimaryKeyException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy MissingPrimaryKeyException.

Przeciążenia

MissingPrimaryKeyException()

Inicjuje nowe wystąpienie klasy MissingPrimaryKeyException.

MissingPrimaryKeyException(String)

Inicjuje MissingPrimaryKeyException nowe wystąpienie klasy z określonym ciągiem.

MissingPrimaryKeyException(SerializationInfo, StreamingContext)
Przestarzałe.

Inicjuje MissingPrimaryKeyException nowe wystąpienie klasy z informacjami o serializacji.

MissingPrimaryKeyException(String, Exception)

Inicjuje nowe wystąpienie MissingPrimaryKeyException klasy z określonym komunikatem o błędzie i odwołaniem do wyjątku wewnętrznego, który jest przyczyną tego wyjątku.

MissingPrimaryKeyException()

Źródło:
DataException.cs
Źródło:
DataException.cs
Źródło:
DataException.cs

Inicjuje nowe wystąpienie klasy MissingPrimaryKeyException.

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

Dotyczy

MissingPrimaryKeyException(String)

Źródło:
DataException.cs
Źródło:
DataException.cs
Źródło:
DataException.cs

Inicjuje MissingPrimaryKeyException nowe wystąpienie klasy z określonym ciągiem.

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)

Parametry

s
String

Ciąg, który ma być wyświetlany po wystąpieniu wyjątku.

Dotyczy

MissingPrimaryKeyException(SerializationInfo, StreamingContext)

Źródło:
DataException.cs
Źródło:
DataException.cs
Źródło:
DataException.cs

Przestroga

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

Inicjuje MissingPrimaryKeyException nowe wystąpienie klasy z informacjami o serializacji.

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)

Parametry

info
SerializationInfo

Dane wymagane do serializacji lub deserializacji obiektu.

context
StreamingContext

Opis źródła i miejsca docelowego określonego serializowanego strumienia.

Atrybuty

Zobacz też

Dotyczy

MissingPrimaryKeyException(String, Exception)

Źródło:
DataException.cs
Źródło:
DataException.cs
Źródło:
DataException.cs

Inicjuje nowe wystąpienie MissingPrimaryKeyException klasy z określonym komunikatem o błędzie i odwołaniem do wyjątku wewnętrznego, który jest przyczyną tego wyjątku.

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)

Parametry

message
String

Komunikat o błędzie wyjaśniający przyczynę wyjątku.

innerException
Exception

Wyjątek, który jest przyczyną bieżącego wyjątku lub odwołanie o wartości null (Nothing w Visual Basic), jeśli nie określono wyjątku wewnętrznego.

Dotyczy