.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

DataSourcePropertyAttribute(String, DataSourcePropertyIsNullMode) Constructor

Namespace: DevExpress.Persistent.Base

Assembly: DevExpress.ExpressApp.v21.1.dll


public DataSourcePropertyAttribute(
    string dataSourceProperty,
    DataSourcePropertyIsNullMode mode


Name Type Description
dataSourceProperty String

A string value specifying the name of a collection property used as the data source for a List View displayed in a Lookup Property Editor or invoked by the LinkUnlinkController.LinkAction Action in a popup window.

mode DataSourcePropertyIsNullMode

A DataSourcePropertyIsNullMode enumeration value specifying the display mode for the target property’s Lookup List View if the DataSourcePropertyAttribute.DataSourceProperty is not specified.


If you do not need to specify the display mode if the property specified by the dataSourceProperty parameter is not set, use the constructor with only the dataSourceProperty parameter.

If you are going to pass the DataSourcePropertyIsNullMode.CustomCriteria value as the dataSourcePropertyIsNullMode parameter, use the constructor with three parameters. Pass the custom criteria as the third DataSourcePropertyAttribute.DataSourcePropertyIsNullCriteria parameter.

See Also