asp.net.ph

DataRelationCollection Class

System.Data Namespace


Represents the collection of relations between parent/child tables in a DataSet.

DataRelationCollection Class Members

Collapse   Properties

Visibility Name Value Type Accessibility
public Item ( String name ) DataRelation [ Get ]
public Item ( Int32 index ) DataRelation [ Get ]

Collapse   Methods

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

Collapse   Events

Multicast Name Type
multicast CollectionChanged CollectionChangeEventHandler

Remarks

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.

See Also

Add   DataSet   Relations   DataRelation   Remove Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 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 asp.net.ph