AddRange Method

DataRelationCollection::AddRange Method (array<DataRelation^>^)

 

Copies the elements of the specified DataRelation array to the end of the collection.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

public:
virtual void AddRange(
	array<DataRelation^>^ relations
)

Parameters

relations
Type: array<System.Data::DataRelation^>^

The array of DataRelation objects to add to the collection.

If BeginInit has been called, AddRange does not add any objects to the collection until EndInit is called. At the time that EndInit is called, the collection will be populated with the items specified in the most recent call to AddRange. If AddRange is called multiple times within a BeginInit / EndInit sequence, only those items specified in the most recent call to AddRange are added.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft