DataRelation Object Reference

The reference information for the DataRelation object isn’t terribly interesting. The object exposes no methods and no events—only properties. However, to leave these out would somehow feel like cheating.

Properties of the DataRelation Class

Most of the DataRelation class’s properties are read-only. You can set their value only using the DataRelation class’s constructors. The commonly used properties are described in Table 7-1.

Table 7-1. Commonly Used Properties of the DataRelation Class

Property

Data Type

Description

ChildColumns

Array of DataColumn objects

Indicates the child columns that define the relation. This property is read-only.

ChildKeyConstraint

ForeignKeyConstraint

Indicates the foreign key constraint in the child ...

Get Programming Microsoft® ADO.NET 2.0 Core Reference, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.