.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

XPCollection(Session, Type, Boolean) Constructor

Initializes a new instance of the XPCollection class with specified settings.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.1.dll


public XPCollection(
    Session session,
    Type objType,
    bool loadingEnabled


Name Type Description
session Session

The Session that will be used to load and save persistent objects.

objType Type

The type of persistent objects to include into the collection.

loadingEnabled Boolean

A Boolean value that specifies whether the collection is automatically populated with 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.


The newly created collection will use the specified session to load and save persistent objects.

See Also