Breyta

Deila með


SqlNullValueException Constructors

Definition

Initializes a new instance of the SqlNullValueException class.

Overloads

SqlNullValueException()

Initializes a new instance of the SqlNullValueException class with a system-supplied message that describes the error.

SqlNullValueException(String)

Initializes a new instance of the SqlNullValueException class with a specified message that describes the error.

SqlNullValueException(String, Exception)

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

SqlNullValueException()

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

Initializes a new instance of the SqlNullValueException class with a system-supplied message that describes the error.

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

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "DefaultMessageDisplayedByParameterlessCtorWriterMustSupply" This message takes into account the current system culture.

The following table shows the initial property values for an instance of InsufficientMemoryException.

Property Value
InnerException null.
Message The localized error message string.

See also

Applies to

SqlNullValueException(String)

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

Initializes a new instance of the SqlNullValueException class with a specified message that describes the error.

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

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.

Remarks

The following table shows the initial property values for an instance of SqlNullValueException.

Property Value
InnerException null.
Message The error message string specified in message.

See also

Applies to

SqlNullValueException(String, Exception)

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

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

public:
 SqlNullValueException(System::String ^ message, Exception ^ e);
public SqlNullValueException (string? message, Exception? e);
public SqlNullValueException (string message, Exception e);
new System.Data.SqlTypes.SqlNullValueException : string * Exception -> System.Data.SqlTypes.SqlNullValueException
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.

See also

Applies to