LookupEditPropertyCollectionSource(IObjectSpace, Type, Object, IMemberInfo, DataSourcePropertyIsNullMode, String, CollectionSourceMode) Constructor

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public LookupEditPropertyCollectionSource(
    IObjectSpace objectSpace,
    Type masterObjectType,
    object masterObject,
    IMemberInfo memberDescriptor,
    DataSourcePropertyIsNullMode dataSourcePropertyIsNullMode,
    string dataSourcePropertyIsNullCriteria,
    CollectionSourceMode collectionSourceMode
)
Public Sub New(
    objectSpace As IObjectSpace,
    masterObjectType As Type,
    masterObject As Object,
    memberDescriptor As IMemberInfo,
    dataSourcePropertyIsNullMode As DataSourcePropertyIsNullMode,
    dataSourcePropertyIsNullCriteria As String,
    collectionSourceMode As CollectionSourceMode
)

Parameters

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 which owns the property whose possible values the created Collection Source will represent.

Object masterObject

An object which owns the property whose possible values the created Collection Source

IMemberInfo memberDescriptor

An IMemberInfo object that contains metadata information on the property whose possible values the created Collection Source will represent.

DataSourcePropertyIsNullMode dataSourcePropertyIsNullMode

The DataSourcePropertyIsNullMode property's value of the Application Model's BOModel | <Class> | OwnMembers | <Member> node that corresponds to the property whose possible values the created Collection Source will represent.

String dataSourcePropertyIsNullCriteria

The DataSourcePropertyIsNullCriteria property's value of the Application Model's BOModel | <Class> | OwnMembers | <Member> node that corresponds to the property whose possible values the created Collection Source will represent.

CollectionSourceMode collectionSourceMode

A CollectionSource enumeration value specifying the created Collection Source's mode of operation.

Remarks

XAF automatically creates a LookupEditPropertyCollectionSource when it creates a Lookup List View. So, generally, you do not need to manually instantiate a LookupEditPropertyCollectionSource.

See Also