Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CollectionSource(IObjectSpace, Type) Constructor

Creates and initializes an instance of the CollectionSource class with the specified parameters.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public CollectionSource(
    IObjectSpace objectSpace,
    Type objectType
)

#Parameters

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.

#Remarks

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