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

XPBaseCollection Class

An ancestor of the XPCollection class.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.1.dll

Declaration

public abstract class XPBaseCollection :
    Component,
    IBindingList,
    IList,
    ICollection,
    IEnumerable,
    ITypedList,
    ISupportInitialize,
    IXPClassInfoAndSessionProvider,
    IXPClassInfoProvider,
    IXPDictionaryProvider,
    ISessionProvider,
    IObjectLayerProvider,
    IDataLayerProvider,
    IObjectChange,
    IFilteredXtraBindingList,
    IFilteredDataSource,
    IXPPrefetchableAssociationList,
    IXPBulkLoadableCollection
public abstract class XPBaseCollection :
    Component,
    IBindingList,
    ICollection,
    IEnumerable,
    IList,
    ITypedList,
    ISupportInitialize,
    IXPClassInfoAndSessionProvider,
    IXPClassInfoProvider,
    IXPDictionaryProvider,
    ISessionProvider,
    IObjectLayerProvider,
    IDataLayerProvider,
    IObjectChange,
    IFilteredXtraBindingList,
    IFilteredDataSource,
    IXPPrefetchableAssociationList,
    IXPBulkLoadableCollection

Remarks

XPBaseCollection is an ancestor of the XPCollection class. Use XPCollection objects in your applications to represent collections of persistent objects. See the XPCollection concept for more information.

Note

The XPBaseCollection‘s implementation of the ITypedList interface limits the number of nesting levels in the object’s hierarchy to four levels at design time. This is done on purpose, because in some situations, Visual Studio attempts to retrieve the full hierarchy. This leads to Visual Studio hanging if the business model has self-referencing associations.

At runtime, there is no limitation for the nesting level, and you can bind controls to any property at runtime, even if it isn’t visible in the designer. Also, the end-user designer doesn’t inherit this problem, and the entire hierarchy will be retrieved.

The following code snippets (auto-collected from DevExpress Examples) contain references to the XPBaseCollection class.

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.

Implements

See Also