MissingPrimaryKeyException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy MissingPrimaryKeyException.

Przeciążenia

Nazwa Opis
MissingPrimaryKeyException()

Inicjuje nowe wystąpienie klasy MissingPrimaryKeyException.

MissingPrimaryKeyException(String)

Inicjuje nowe wystąpienie MissingPrimaryKeyException klasy przy użyciu określonego ciągu.

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
Ź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
Źródło:
DataException.cs
Źródło:
DataException.cs

Inicjuje nowe wystąpienie MissingPrimaryKeyException klasy przy użyciu określonego ciągu.

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 do wyświetlenia po wystąpieniu wyjątku.

Dotyczy

MissingPrimaryKeyException(SerializationInfo, StreamingContext)

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

Uwaga

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);
[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)

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
Ź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