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

XafApplication.CreateCollectionSource(IObjectSpace, Type, String, CollectionSourceMode) Method

Creates a Collection Source for a specific List View.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public CollectionSourceBase CreateCollectionSource(
    IObjectSpace objectSpace,
    Type objectType,
    string listViewId,
    CollectionSourceMode mode
)

#Parameters

Name Type Description
objectSpace IObjectSpace

An IObjectSpace object that represents an Object Space for the objects retrieved to the created Collection Source.

objectType Type

The Type object that represents the type of the objects that will be retrieved to the created Collection Source.

listViewId String

A string value representing the target List View’s identifier.

mode CollectionSourceMode

A CollectionSourceMode enumeration value specifying the Collection Source’s mode of operation. This value is set to the CollectionSourceBase.Mode property.

#Returns

Type Description
CollectionSourceBase

A CollectionSourceBase object that represents the Collection Source of objects whose type is specified by the objectType parameter.

See Also