Checks to ensure the DataRelation is a valid object, even if it doesn't belong to a DataSet.
[Visual Basic] Protected Sub CheckStateForProperty() [C#] protected void CheckStateForProperty(); [C++] protected: void CheckStateForProperty(); [JScript] protected function CheckStateForProperty();
Exception Type | Condition |
---|---|
DataException.RelationDataSetMismatch | The parent table and the child table belong to different DataSet objects. |
DataException.ColumnsTypeMismatch | One or more pairs of parent and child columns have mismatched data types. |
DataException.KeyColumnsIdentical | The parent column and the child column are identical. |
Exceptions are thrown if the DataRelation is not valid.
DataRelation Class | DataRelation Members | System.Data Namespace