SqlTypeException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy SqlTypeException.

Przeciążenia

Nazwa Opis
SqlTypeException()

Inicjuje nowe wystąpienie klasy SqlTypeException.

SqlTypeException(String)

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

SqlTypeException(SerializationInfo, StreamingContext)
Przestarzałe.

Inicjuje SqlTypeException nowe wystąpienie klasy z serializowanymi danymi.

SqlTypeException(String, Exception)

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

SqlTypeException()

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

Inicjuje nowe wystąpienie klasy SqlTypeException 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
Źródło:
SQLUtility.cs
Źródło:
SQLUtility.cs

Uwaga

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

Inicjuje SqlTypeException nowe wystąpienie klasy z serializowanymi danymi.

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)

Parametry

si
SerializationInfo

Obiekt, który przechowuje serializowane dane obiektu.

sc
StreamingContext

Kontekstowe informacje o źródle lub miejscu docelowym.

Atrybuty

Uwagi

Ten konstruktor jest wywoływany podczas deserializacji w celu ponownego utworzenia obiektu wyjątku przesyłanego przez strumień. Aby uzyskać więcej informacji, zobacz XML i SOAP Serialization.

Zobacz też

Dotyczy

SqlTypeException(String, Exception)

Źródło:
SQLUtility.cs
Źródło:
SQLUtility.cs
Ź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 wyjątku wewnętrznego, 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, aby upewnić się, że ten ciąg został zlokalizowany dla bieżącej kultury systemu.

e
Exception

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

Dotyczy