DataSourceInfoCollection.GetDataSourceNameByDataSource(Object) Method

Returns the name of the specified datasource.

Namespace: DevExpress.Snap.Core.API

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

Declaration

public string GetDataSourceNameByDataSource(
    object dataSource
)
Public Function GetDataSourceNameByDataSource(
    dataSource As Object
) As String

Parameters

Name Type Description
dataSource Object

A Object value, specifying the datasource.

Returns

Type Description
String

A String value, specifying the datasource name.

Remarks

This method returns the datasource name if the specified datasource exist. Otherwise, the GetDataSourceNameByDataSource method returns null (Nothing in Visual Basic).

See Also