System.Data.SqlTypes.SqlNullValueException Class

The exception that is thrown when the Value property of a System.Data.SqlTypes structure is set to null.

See Also: SqlNullValueException Members


public sealed class SqlNullValueException : SqlTypeException


In order to avoid throwing this exception, you should always examine the IsNull property of the structure before accessing the Value property.


Namespace: System.Data.SqlTypes
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,