VersionNotFoundException Konstruktorer

Definition

Initierar en ny instans av VersionNotFoundException klassen.

Överlagringar

Name Description
VersionNotFoundException()

Initierar en ny instans av VersionNotFoundException klassen.

VersionNotFoundException(String)

Initierar en ny instans av VersionNotFoundException klassen med den angivna strängen.

VersionNotFoundException(SerializationInfo, StreamingContext)
Föråldrad.

Initierar en ny instans av VersionNotFoundException klassen med serialiseringsinformation.

VersionNotFoundException(String, Exception)

Initierar en ny instans av VersionNotFoundException klassen med ett angivet felmeddelande och en referens till det inre undantaget som är orsaken till det här undantaget.

VersionNotFoundException()

Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs

Initierar en ny instans av VersionNotFoundException klassen.

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

Gäller för

VersionNotFoundException(String)

Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs

Initierar en ny instans av VersionNotFoundException klassen med den angivna strängen.

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

Parametrar

s
String

Strängen som ska visas när undantaget utlöses.

Gäller för

VersionNotFoundException(SerializationInfo, StreamingContext)

Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs

Varning

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

Initierar en ny instans av VersionNotFoundException klassen med serialiseringsinformation.

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

Parametrar

info
SerializationInfo

De data som krävs för att serialisera eller deserialisera ett objekt.

context
StreamingContext

Beskrivning av källan och målet för den angivna serialiserade strömmen.

Attribut

Se även

Gäller för

VersionNotFoundException(String, Exception)

Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs

Initierar en ny instans av VersionNotFoundException klassen med ett angivet felmeddelande och en referens till det inre undantaget som är orsaken till det här undantaget.

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

Parametrar

message
String

Felmeddelandet som förklarar orsaken till undantaget.

innerException
Exception

Undantaget som är orsaken till det aktuella undantaget eller en null-referens (Nothing i Visual Basic) om inget inre undantag har angetts.

Gäller för