The requested page is not available for the requested platform. You are viewing the content for Default platform.

CollectionSource(IObjectSpace, Type, Boolean) Constructor

Initializes a new instance of the CollectionSource.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.1.dll


public CollectionSource(
    IObjectSpace objectSpace,
    Type objectType,
    bool isServerMode
Public Sub New(
    objectSpace As IObjectSpace,
    objectType As Type,
    isServerMode As Boolean


Name Type Description
objectSpace IObjectSpace

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

objectType Type

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

isServerMode Boolean

true, if the server mode should be used; otherwise, false. This value is considered when initializing the CollectionSourceBase.DataAccessMode 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