ViewModelManager.RegisterDataSource(String, Object) Method

Adds a DataSource object to a View Model.

Namespace: DevExpress.ExpressApp.Mobile

Assembly: DevExpress.ExpressApp.Mobile.v18.1.dll

Syntax

public DataSource RegisterDataSource(
    string id,
    object store
)

Parameters

Type Name Description
String id

A string that is a DataSource identifier.

Object store

An object that is a DevExtreme Store used to access data.

Returns

Type Description
DevExpress.ExpressApp.Mobile.MobileModel.DataSource

A DataSource object that provides access to a data web service or local data storage.