Name

SqlNullValueException

Synopsis

This exception is thrown when you set the Value property of a SQL structure to null. To prevent throwing this exception, you should check the IsNull property of the structure before accessing the Value property.

public sealed class SqlNullValueException : SqlTypeException {

// Public Constructors

   public SqlNullValueException( );  

   public SqlNullValueException(string message);  

   public SqlNullValueException(string message, Exception e);  

}

Hierarchy

System.Object System.Exception(System.Runtime.Serialization.ISerializable) System.SystemException SqlTypeException SqlNullValueException

Get ADO.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.