PropertyCollectionSource(IObjectSpace, Type, Object, IMemberInfo, Boolean, CollectionSourceMode) Constructor

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.2.dll


public PropertyCollectionSource(
    IObjectSpace objectSpace,
    Type masterObjectType,
    object masterObject,
    IMemberInfo memberInfo,
    bool isServerMode,
    CollectionSourceMode mode
Public Sub New(
    objectSpace As IObjectSpace,
    masterObjectType As Type,
    masterObject As Object,
    memberInfo As IMemberInfo,
    isServerMode As Boolean,
    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 masterObjectType

The type of an object whose collection property the created PropertyCollectionSource will represent.

Object masterObject

An object, whose collection property the created PropertyCollectionSource will represent.

IMemberInfo memberInfo

An IMemberInfo object that contains metadata information on the collection property the created PropertyCollectionSource will represent.

Boolean isServerMode

true if a Property Collection Source is created in server mode. This value is considered when initializing the CollectionSourceBase.DataAccessMode property.

CollectionSourceMode mode

A CollectionSourceMode enumeration value which specifies the mode of operation for the created Property Collection Source. This value is used to initialize the CollectionSourceBase.Mode property.


XAF automatically creates a PropertyCollectionSource when it creates a nested List View which displays a collection property. So, generally, you do not need to manually instantiate a PropertyCollectionSource.

See Also