System.Data Namespace
Represents the collection of relations between parent/child tables in a DataSet.
Visibility |
Name |
Parameters |
Return Type |
public |
Add |
(
String
name
,
DataColumn
parentColumn
,
DataColumn
childColumn
)
|
DataRelation
|
public |
Add |
(
DataColumn
parentColumns
,
DataColumn
childColumns
)
|
DataRelation
|
public |
Add |
(
DataColumn
parentColumn
,
DataColumn
childColumn
)
|
DataRelation
|
public |
Add |
(
String
name
,
DataColumn
parentColumn
,
DataColumn
childColumn
,
Boolean
createConstraints
)
|
DataRelation
|
public |
Add |
(
DataRelation
relation
)
|
Void
|
public |
Add |
(
String
name
,
DataColumn
parentColumns
,
DataColumn
childColumns
)
|
DataRelation
|
public |
Add |
(
String
name
,
DataColumn
parentColumns
,
DataColumn
childColumns
,
Boolean
createConstraints
)
|
DataRelation
|
protected |
AddCore |
(
DataRelation
relation
)
|
Void
|
public |
AddRange |
(
DataRelation
relations
)
|
Void
|
public |
CanRemove |
(
DataRelation
relation
)
|
Boolean
|
public |
Clear |
( )
|
Void
|
public |
Contains |
(
String
name
)
|
Boolean
|
public |
CopyTo |
(
DataRelation
array
,
Int32
index
)
|
Void
|
protected |
GetDataSet |
( )
|
DataSet
|
public |
IndexOf |
(
String
relationName
)
|
Int32
|
public |
IndexOf |
(
DataRelation
relation
)
|
Int32
|
protected |
OnCollectionChanged |
(
CollectionChangeEventArgs
ccevent
)
|
Void
|
protected |
OnCollectionChanging |
(
CollectionChangeEventArgs
ccevent
)
|
Void
|
public |
Remove |
(
String
name
)
|
Void
|
public |
Remove |
(
DataRelation
relation
)
|
Void
|
public |
RemoveAt |
(
Int32
index
)
|
Void
|
protected |
RemoveCore |
(
DataRelation
relation
)
|
Void
|
|
The DataRelationCollection represents the set of DataRelation objects defined for the parent/child tables of a given DataSet. This collection is accessed via the DataSet.Relations property.
Like most data collections in ADO.NET, the DataRelationCollection uses standard collection methods to manage the items in the collection. These include the methods Add, Clear, and Remove.
The collection also includes a Count property to determine how many DataRelation objects are in the collection, and a Contains method to verify whether a specified relation exists in the collection.
Add DataSet Relations DataRelation Remove