NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataRelation.CheckStateForProperty

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();

Exceptions

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.

Remarks

Exceptions are thrown if the DataRelation is not valid.

See Also

DataRelation Class | DataRelation Members | System.Data Namespace