XPCollection(Session, XPClassInfo) Constructor
In This Article
Initializes a new instance of the XPCollection class with specified settings.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public XPCollection(
Session session,
XPClassInfo objType
)
#Parameters
Name | Type | Description |
---|---|---|
session | Session | The Session that will be used to load and save persistent objects. |
obj |
XPClass |
The persistent class’s metadata information of objects to include into the collection. |
#Remarks
If the XPBaseCollection.LoadingEnabled property is set to true (default value) the collection is populated with objects when its contents are accessed for the first time (for instance, when the XPBaseCollection.Count property is read).
The newly created collection will use the specified session to load and save persistent objects.
See Also