InvalidConstraintException Class
Assembly: System.Data (in system.data.dll)
'Declaration <SerializableAttribute> _ Public Class InvalidConstraintException Inherits DataException 'Usage Dim instance As InvalidConstraintException
/** @attribute SerializableAttribute() */ public class InvalidConstraintException extends DataException
SerializableAttribute public class InvalidConstraintException extends DataException
The InvalidConstraintException is thrown when incorrectly invoking the following methods while trying to create or access a relation.
If you call Add, the InvalidConstraintException may be thrown if a relation cannot be created based on the values supplied in the parameters. If you call Clear, the InvalidConstraintException may be thrown if a ForeignKeyConstraint is enforced on the DataRowCollection. If you call GetParentRow, the InvalidConstraintException may be thrown if the columns have different data types or the tables do not belong to the same DataSet.
System.Exception
System.SystemException
System.Data.DataException
System.Data.InvalidConstraintException
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.