Skip to main content
A newer version of this page is available.

DataSourceInfoCollection.GetDataSourceByName(String) Method

Provides access to the report’s datasource by its name.

Namespace: DevExpress.Snap.Core.API

Assembly: DevExpress.Snap.v19.1.Core.dll

Declaration

public object GetDataSourceByName(
    string name
)

Parameters

Name Type Description
name String

A String value, specifying the datasource’s name.

Returns

Type Description
Object

A Object value, specifying the datasource.

Remarks

This method returns the datasource object if the specified datasource name has been found. Otherwise, the GetDataSourceByName method returns null (Nothing in Visual Basic).

See Also