This documentation is archived and is not being maintained.

DataRelation.CheckStateForProperty Method

Ensures that the DataRelation is a valid object.

[Visual Basic]
Protected Sub CheckStateForProperty()
protected void CheckStateForProperty();
protected: void CheckStateForProperty();
protected function CheckStateForProperty();


Exception Type Condition
DataException The parent and child tables belong to different DataSet objects.


One or more pairs of parent and child DataColumn objects have mismatched data types.


The parent and child DataColumn objects are identical.


CheckStateForProperty verifies the validity of a DataRelation object, even if it does not belong to a DataSet.


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

See Also

DataRelation Class | DataRelation Members | System.Data Namespace