Breyta

Deila með


SqlTypeException Constructors

Definition

Initializes a new instance of the SqlTypeException class.

Overloads

SqlTypeException()

Initializes a new instance of the SqlTypeException class.

SqlTypeException(String)

Initializes a new instance of the SqlTypeException class with a specified error message.

SqlTypeException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the SqlTypeException class with serialized data.

SqlTypeException(String, Exception)

Initializes a new instance of the SqlTypeException class with a specified error message and a reference to the inner exception that is the cause of this exception.

SqlTypeException()

Source:
SQLUtility.cs
Source:
SQLUtility.cs
Source:
SQLUtility.cs

Initializes a new instance of the SqlTypeException class.

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

Applies to

SqlTypeException(String)

Source:
SQLUtility.cs
Source:
SQLUtility.cs
Source:
SQLUtility.cs

Initializes a new instance of the SqlTypeException class with a specified error message.

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)

Parameters

message
String

The error message that explains the reason for the exception.

Applies to

SqlTypeException(SerializationInfo, StreamingContext)

Source:
SQLUtility.cs
Source:
SQLUtility.cs
Source:
SQLUtility.cs

Caution

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

Initializes a new instance of the SqlTypeException class with serialized data.

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)

Parameters

si
SerializationInfo

The object that holds the serialized object data.

sc
StreamingContext

The contextual information about the source or destination.

Attributes

Remarks

This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see XML and SOAP Serialization.

See also

Applies to

SqlTypeException(String, Exception)

Source:
SQLUtility.cs
Source:
SQLUtility.cs
Source:
SQLUtility.cs

Initializes a new instance of the SqlTypeException class with a specified error message and a reference to the inner exception that is the cause of this exception.

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)

Parameters

message
String

The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

e
Exception

The exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

Applies to