| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DataRelationCollection ClassRepresents 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 |
| Multicast | Name | Type |
|---|---|---|
| multicast | CollectionChanged | CollectionChangeEventHandler |
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
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme