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

XafApplication.CreateCollectionSource(IObjectSpace, Type, String, Boolean, CollectionSourceMode) Method

Creates a Collection Source for a specific List View.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public CollectionSourceBase CreateCollectionSource(
    IObjectSpace objectSpace,
    Type objectType,
    string listViewId,
    bool isServerMode,
    CollectionSourceMode mode
)
Public Function CreateCollectionSource(
    objectSpace As IObjectSpace,
    objectType As Type,
    listViewId As String,
    isServerMode As Boolean,
    mode As CollectionSourceMode
) As CollectionSourceBase
public CollectionSourceBase CreateCollectionSource(
    IObjectSpace objectSpace,
    Type objectType,
    string listViewId,
    bool isServerMode,
    CollectionSourceMode mode
)
Public Function CreateCollectionSource(
    objectSpace As IObjectSpace,
    objectType As Type,
    listViewId As String,
    isServerMode As Boolean,
    mode As CollectionSourceMode
) As CollectionSourceBase
public CollectionSourceBase CreateCollectionSource(
    IObjectSpace objectSpace,
    Type objectType,
    string listViewId,
    bool isServerMode,
    CollectionSourceMode mode
)
Public Function CreateCollectionSource(
    objectSpace As IObjectSpace,
    objectType As Type,
    listViewId As String,
    isServerMode As Boolean,
    mode As CollectionSourceMode
) As CollectionSourceBase

Parameters

Name Type Description
objectSpace IObjectSpace

An IObjectSpace object that represents an Object Space for the objects retrieved to the created Collection Source.

objectType Type

The Type object that represents the type of the objects that will be retrieved to the created Collection Source.

listViewId String

A string value representing the target List View's identifier.

isServerMode Boolean

true, to enable the Server Mode; otherwise, false. When this value is set to true, the CollectionSourceBase.DataAccessMode property is set to Server.

mode CollectionSourceMode

A CollectionSourceMode enumeration value specifying the Collection Source's mode of operation. This value is set to the CollectionSourceBase.Mode property.

Parameters

Name Type Description
objectSpace IObjectSpace

An IObjectSpace object that represents an Object Space for the objects retrieved to the created Collection Source.

objectType Type

The Type object that represents the type of the objects that will be retrieved to the created Collection Source.

listViewId String

A string value representing the target List View's identifier.

isServerMode Boolean

true, to enable the Server Mode; otherwise, false. When this value is set to true, the CollectionSourceBase.DataAccessMode property is set to Server.

mode CollectionSourceMode

A CollectionSourceMode enumeration value specifying the Collection Source's mode of operation. This value is set to the CollectionSourceBase.Mode property.

Parameters

Name Type Description
objectSpace IObjectSpace

An IObjectSpace object that represents an Object Space for the objects retrieved to the created Collection Source.

objectType Type

The Type object that represents the type of the objects that will be retrieved to the created Collection Source.

listViewId String

A string value representing the target List View's identifier.

isServerMode Boolean

true, to enable the Server Mode; otherwise, false. When this value is set to true, the CollectionSourceBase.DataAccessMode property is set to Server.

mode CollectionSourceMode

A CollectionSourceMode enumeration value specifying the Collection Source's mode of operation. This value is set to the CollectionSourceBase.Mode property.

Returns

Type Description
CollectionSourceBase

A CollectionSourceBase object that represents the Collection Source of objects whose type is specified by the objectType parameter.

Returns

Type Description
CollectionSourceBase

A CollectionSourceBase object that represents the Collection Source of objects whose type is specified by the objectType parameter.

Returns

Type Description
CollectionSourceBase

A CollectionSourceBase object that represents the Collection Source of objects whose type is specified by the objectType parameter.

See Also