SqlTypeException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy SqlTypeException.

Przeciążenia

SqlTypeException()

Inicjuje nowe wystąpienie klasy SqlTypeException.

SqlTypeException(String)

Inicjuje SqlTypeException nowe wystąpienie klasy z określonym komunikatem o błędzie.

SqlTypeException(SerializationInfo, StreamingContext)
Przestarzałe.

Inicjuje nowe wystąpienie klasy SqlTypeException z zserializowanymi danymi.

SqlTypeException(String, Exception)

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

SqlTypeException()

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

Inicjuje nowe wystąpienie klasy SqlTypeException.

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

Dotyczy

SqlTypeException(String)

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

Inicjuje SqlTypeException nowe wystąpienie klasy z określonym komunikatem o błędzie.

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)

Parametry

message
String

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

Dotyczy

SqlTypeException(SerializationInfo, StreamingContext)

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

Przestroga

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

Inicjuje nowe wystąpienie klasy SqlTypeException z zserializowanymi danymi.

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

Parametry

si
SerializationInfo

Obiekt zawierający dane serializowanego obiektu.

sc
StreamingContext

Informacje kontekstowe dotyczące źródła lub miejsca docelowego.

Atrybuty

Uwagi

Ten konstruktor jest wywoływana podczas deserializacji do odtworzenia obiektu wyjątku przesyłanego za pomocą strumienia. Aby uzyskać więcej informacji, zobacz Serializacja XML i SOAP.

Zobacz też

Dotyczy

SqlTypeException(String, Exception)

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

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

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)

Parametry

message
String

Komunikat opisujący wyjątek. Obiekt wywołujący tego konstruktora jest wymagany w celu zagwarantowania, że ten ciąg został zlokalizowany w bieżącej kulturze systemu.

e
Exception

Wyjątek będący przyczyną bieżącego wyjątku. innerException Jeśli parametr nie nulljest , bieżący wyjątek jest zgłaszany w catch bloku, który obsługuje wyjątek wewnętrzny.

Dotyczy