Skip to main content
A newer version of this page is available.
.NET Framework 4.5.2+

DataSourcePropertyAttribute(String, DataSourcePropertyIsNullMode) Constructor

Namespace: DevExpress.Persistent.Base

Assembly: DevExpress.ExpressApp.v21.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public DataSourcePropertyAttribute(
    string dataSourceProperty,
    DataSourcePropertyIsNullMode mode
)

Parameters

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.

Remarks

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