CollectionSource(IObjectSpace, Type, CollectionSourceDataAccessMode, CollectionSourceMode) Constructor

Initializes a new instance of the CollectionSource.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.2.dll


public CollectionSource(
    IObjectSpace objectSpace,
    Type objectType,
    CollectionSourceDataAccessMode dataAccessMode,
    CollectionSourceMode mode
Public Sub New(
    objectSpace As IObjectSpace,
    objectType As Type,
    dataAccessMode As CollectionSourceDataAccessMode,
    mode As CollectionSourceMode


Type Name Description
IObjectSpace objectSpace

An IObjectSpace object representing the Object Space used by the Collection Source to interact with the database.

Type objectType

A type of the objects that will be contained in the Collection Source's CollectionSourceBase.Collection.

CollectionSourceDataAccessMode dataAccessMode

A CollectionSourceDataAccessMode enumeration value that specifies the mode used to access the CollectionSourceBase.Collection.

CollectionSourceMode mode

A CollectionSource enumeration value specifying a Collection Source's mode of operation. This value is used to initialize the CollectionSourceBase.Mode property.


XAF automatically creates and manipulates a Collection Source when it creates a List View. However, you may need to instantiate a Collection Source manually if you create a custom List View.

See Also