Export (0) Print
Expand All

DataRelation.CheckStateForProperty Method

Ensures that the DataRelation is a valid object.

[Visual Basic]
Protected Sub CheckStateForProperty()
[C#]
protected void CheckStateForProperty();
[C++]
protected: void CheckStateForProperty();
[JScript]
protected function CheckStateForProperty();

Exceptions

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

-Or-

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

-Or-

The parent and child DataColumn objects are identical.

Remarks

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

Requirements

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

Show:
© 2014 Microsoft