DataSourceInfoCollection.GetDataSourceByName(String) Method

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

Namespace: DevExpress.Snap.Core.API

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

Declaration

public object GetDataSourceByName(
    string name
)
Public Function GetDataSourceByName(
    name As String
) As Object

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).

Implements

DevExpress.Snap.Core.Native.IDataSourceInfoContainer.GetDataSourceByName(String)
See Also