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

XPCollection(Type) Constructor

Initializes a new instance of the XPCollection class with the default Session and object type.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.1.dll

Declaration

public XPCollection(
    Type objType
)

Parameters

Name Type Description
objType Type

The type of persistent 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 default session (Session.DefaultSession) to load and save persistent objects.

See Also