XPCollection(Session, Boolean) Constructor
Initializes a new instance of the XPCollection<T> class with specified settings.
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 |
---|---|---|
session | Session | The Session that will be used to load and save T persistent objects. |
loadingEnabled | Boolean | A Boolean value that specifies whether the collection is automatically populated with T objects from the data store when the collection is accessed for the first time (for instance, when the XPBaseCollection.Count property is read). This parameter is used to initialize the XPBaseCollection.LoadingEnabled property. |
Remarks
The newly created collection will use the specified session to load and save T persistent objects.