Skip to main content
.NET Framework 4.6.2+

XPBaseCollection.IsLoaded Property

Gets whether the XPBaseCollection collection is loaded with objects from the data store.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.2.dll

Declaration

[Browsable(false)]
public bool IsLoaded { get; }

Property Value

Type Description
Boolean

true if the collection is loaded with objects from the data store; otherwise, false.

Remarks

A collection loads data from a data store automatically if the XPBaseCollection.LoadingEnabled property is set to true and the collection’s contents is accessed for the first time. The IsLoaded property returns true if the collection has been loaded with data. Otherwise, the property returns false.

If the XPBaseCollection.LoadingEnabled property is set to false, the IsLoaded property is of no avail.

Note that when an XPCollection is created using a constructor with the criteriaEvaluationBehavior parameter, it is loaded immediately.

See Also