An instance of the DataRelationInfoCollection class contains all data relations in a data source represented through objects of the type DataRelationInfo. The DataRelationInfoCollection class implements the interface ICollection<DataRelationInfo> and therefore also IEnumerable<DataRelationInfo>. This collection class is meant to be read only. For this reason all ICollection members which would cause changes to the collection content (e. g. Add(), Clear() or Remove()) throw a NotSupportedException.

Syntax

public sealed class DataRelationInfoCollection : ICollection
Public NotInheritable Class DataRelationInfoCollection
  Inherits ICollection

Introduced: X14.

Methods

Method Description
CopyTo Copies the elements of the collection to an array, starting at a particular index.
GetEnumerator Returns an enumerator that can be used to iterate through the collection.

Properties

Property Description
Count Gets the number of elements contained in the collection.
IsReadOnly Gets a value indicating whether the collection is read only.
Item Gets the DataRelationInfo instance with the specified 0-based index from the collection.