Skip to main content
A newer version of this page is available. .

XPCollection(PersistentCriteriaEvaluationBehavior, Session, Type, CriteriaOperator) Constructor

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v18.2.dll

Declaration

public XPCollection(
    PersistentCriteriaEvaluationBehavior criteriaEvaluationBehavior,
    Session session,
    Type objType,
    CriteriaOperator condition
)

Parameters

Name Type Description
criteriaEvaluationBehavior PersistentCriteriaEvaluationBehavior

A PersistentCriteriaEvaluationBehavior enumeration value that specifies how the persistent criteria are evaluated.

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.

condition CriteriaOperator

The CriteriaOperator that specifies the criteria for object selection.

Remarks

Note that when an XPCollection is created using a constructor with the criteriaEvaluationBehavior parameter, the collection is loaded immediately and its XPBaseCollection.LoadingEnabled property is automatically set to false. After that, the collection cannot be reloaded using the XPBaseCollection.Reload method, since object loading is disabled.

See Also