SqlTypeException Konstruktorer

Definition

Initierar en ny instans av SqlTypeException klassen.

Överlagringar

Name Description
SqlTypeException()

Initierar en ny instans av SqlTypeException klassen.

SqlTypeException(String)

Initierar en ny instans av SqlTypeException klassen med ett angivet felmeddelande.

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

Initierar en ny instans av SqlTypeException klassen med serialiserade data.

SqlTypeException(String, Exception)

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

SqlTypeException()

Källa:
SQLUtility.cs
Källa:
SQLUtility.cs
Källa:
SQLUtility.cs
Källa:
SQLUtility.cs
Källa:
SQLUtility.cs

Initierar en ny instans av SqlTypeException klassen.

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

Gäller för

SqlTypeException(String)

Källa:
SQLUtility.cs
Källa:
SQLUtility.cs
Källa:
SQLUtility.cs
Källa:
SQLUtility.cs
Källa:
SQLUtility.cs

Initierar en ny instans av SqlTypeException klassen med ett angivet felmeddelande.

public:
 SqlTypeException(System::String ^ message);
public SqlTypeException(string? message);
public SqlTypeException(string message);
new System.Data.SqlTypes.SqlTypeException : string -> System.Data.SqlTypes.SqlTypeException
Public Sub New (message As String)

Parametrar

message
String

Felmeddelandet som förklarar orsaken till undantaget.

Gäller för

SqlTypeException(SerializationInfo, StreamingContext)

Källa:
SQLUtility.cs
Källa:
SQLUtility.cs
Källa:
SQLUtility.cs
Källa:
SQLUtility.cs
Källa:
SQLUtility.cs

Varning

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

Initierar en ny instans av SqlTypeException klassen med serialiserade data.

protected:
 SqlTypeException(System::Runtime::Serialization::SerializationInfo ^ si, System::Runtime::Serialization::StreamingContext sc);
[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 SqlTypeException(System.Runtime.Serialization.SerializationInfo si, System.Runtime.Serialization.StreamingContext sc);
protected SqlTypeException(System.Runtime.Serialization.SerializationInfo si, System.Runtime.Serialization.StreamingContext sc);
[<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.SqlTypes.SqlTypeException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.SqlTypes.SqlTypeException
new System.Data.SqlTypes.SqlTypeException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.SqlTypes.SqlTypeException
Protected Sub New (si As SerializationInfo, sc As StreamingContext)

Parametrar

si
SerializationInfo

Objektet som innehåller serialiserade objektdata.

sc
StreamingContext

Sammanhangsinformation om källan eller målet.

Attribut

Kommentarer

Den här konstruktorn anropas under deserialiseringen för att återskapa undantagsobjektet som överförs via en ström. Mer information finns i XML- och SOAP-serialisering.

Se även

Gäller för

SqlTypeException(String, Exception)

Källa:
SQLUtility.cs
Källa:
SQLUtility.cs
Källa:
SQLUtility.cs
Källa:
SQLUtility.cs
Källa:
SQLUtility.cs

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

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

Parametrar

message
String

Meddelandet som beskriver undantaget. Anroparen för den här konstruktorn krävs för att säkerställa att den här strängen har lokaliserats för den aktuella systemkulturen.

e
Exception

Undantaget som är orsaken till det aktuella undantaget. Om parametern innerException inte nullär genereras det aktuella undantaget i ett catch block som hanterar det inre undantaget.

Gäller för