XPCollection.AddRange(ICollection) Method
Adds each element from a specified collection of persistent objects to the XPCollection.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.1.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
Parameters
Name | Type | Description |
---|---|---|
objects | ICollection | An ICollection object, which is a collection of persistent objects to add to the XPCollection. |
Remarks
A persistent object is an object that implements the IXPSimpleObject interface or has the PersistentAttribute attribute.
You cannot add objects whose type is not the same or not inherited from the type specified by the XPCollection.ObjectClassInfo property. Also, you cannot add an object more than once. Doing so does not lead to an exception, but the object will not be added to the collection.
While the XPCollection is loading, it contains objects that match specific criteria. When you add objects, the collection does not check whether they match the criteria or not.