Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

XPBaseCollection.IsLoaded Property

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsLoaded property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also