Represents the exception that is thrown when attempting to insert a null value into a column where AllowDBNull is set to false.
For a list of all members of this type, see NoNullAllowedException Members.
System.Object
System.Exception
System.SystemException
System.Data.DataException
System.Data.NoNullAllowedException
[Visual Basic] <Serializable> Public Class NoNullAllowedException Inherits DataException [C#] [Serializable] public class NoNullAllowedException : DataException [C++] [Serializable] public __gc class NoNullAllowedException : public DataException [JScript] public Serializable class NoNullAllowedException extends DataException
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
The NoNullAllowedException is thrown when invoking the following methods or properties when attempting to insert a null value into a column where AllowDBNull is set to false.
Namespace: System.Data
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework - Windows CE .NET
Assembly: System.Data (in System.Data.dll)