<PackageReference Include="System.Data.SqlClient" Version="4.7.0-preview4.19212.13" />

SqlNullValueException

public sealed class SqlNullValueException : SqlTypeException
The exception that is thrown when the Value property of a SqlTypes structure is set to null.

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

public SqlNullValueException(string message)

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

public SqlNullValueException(string message, Exception e)

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.