public DataRelation(string relationName, System.Data.DataColumn parentColumn, System.Data.DataColumn childColumn)

public DataRelation(string relationName, System.Data.DataColumn
parentColumn, System.Data.DataColumn childColumn)
Member of System.Data.DataRelation

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

Parameters:
relationName: The name of the System.Data.DataRelation. If null or an
empty string (""), a default name will be given when the created
object is added to the System.Data.DataRelationCollection.
parentColumn: The parent System.Data.DataColumn in the relationship.
childColumn: The child System.Data.DataColumn in the relationship.

Exceptions:
System.ArgumentNullException: One or both of the
System.Data.DataColumn objects contains 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