public DataRelation(string relationName, System.Data.DataColumn[ ] parentColumns, System.Data.DataColumn[ ] childColumns)

public DataRelation(string relationName, System.Data.DataColumn[ ]
parentColumns, System.Data.DataColumn[ ] childColumns)
Member of System.Data.DataRelation

Summary:
Initializes a new instance of the System.Data.DataRelation class using
the specified System.Data.DataRelation name and matched arrays of
parent and child System.Data.DataColumn objects.

Parameters:
relationName: The name of the relation. If null or an empty string
(""), a default name will be given when the created object is added to
the System.Data.DataRelationCollection.
parentColumns: An array of parent System.Data.DataColumn objects.
childColumns: An array of child System.Data.DataColumn objects.

Exceptions:
System.ArgumentNullException: One or both of the
System.Data.DataColumn objects contains null.
System.Data.InvalidConstraintException: The System.Data.DataColumn
objects have different data types -Or- One or both of the arrays are
not composed of distinct columns from the same table.-Or- The tables
do not belong to the same System.Data.DataSet.

No comments:

Post a Comment