Name
InvalidConstraintException
Synopsis
This exception is thrown when incorrectly attempting to create or
access a DataRelation object. For example, if you
attempt to remove a DataRelation when a
corresponding ForeignKeyConstraint exists on a
table, or if you try to specify DataRelation
parent-and-child columns with incompatible data types or in tables
from different DataSet objects, this exception is
thrown.
public class InvalidConstraintException : DataException { // Public Constructors public InvalidConstraintException( ); public InvalidConstraintException(strings); // Protected Constructors protected InvalidConstraintException(System.Runtime.Serialization.SerializationInfoinfo, System.Runtime.Serialization.StreamingContextcontext); }
Hierarchy
System.Object
→
System.Exception(System.Runtime.Serialization.ISerializable)
→
System.SystemException
→
DataException
→
InvalidConstraintException
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access