DataSourcePropertyAttribute(String, DataSourcePropertyIsNullMode) Constructor

Namespace: DevExpress.Persistent.Base

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public DataSourcePropertyAttribute(
    string dataSourceProperty,
    DataSourcePropertyIsNullMode mode
)
Public Sub New(
    dataSourceProperty As String,
    mode As DataSourcePropertyIsNullMode
)

Parameters

Type Name Description
String dataSourceProperty

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.

DataSourcePropertyIsNullMode mode

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