parentColumns, System.Data.DataColumn[ ] childColumns, bool
createConstraints)
Member of System.Data.DataRelation
Summary:
Initializes a new instance of the System.Data.DataRelation class using
the specified name, matched arrays of parent and child
System.Data.DataColumn objects, and value that indicates whether to
create constraints.
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.
createConstraints: A value that indicates whether to create
constraints. true, if constraints are created. Otherwise, false.
Exceptions:
System.ArgumentNullException: One or both of the
System.Data.DataColumn objects is null.
System.Data.InvalidConstraintException: The columns have different
data types -Or- The tables do not belong to the same
System.Data.DataSet.
No comments:
Post a Comment