Share via


Report.GetDataSourceByName Method

Accesses a data source by its name.

Namespace:  Microsoft.ReportingServices.RdlObjectModel
Assembly:  Microsoft.ReportingServices.Designer.Controls (in Microsoft.ReportingServices.Designer.Controls.dll)

Syntax

'Declaration
Public Function GetDataSourceByName ( _
    name As String _
) As DataSource
'Usage
Dim instance As Report
Dim name As String
Dim returnValue As DataSource

returnValue = instance.GetDataSourceByName(name)
public DataSource GetDataSourceByName(
    string name
)
public:
DataSource^ GetDataSourceByName(
    String^ name
)
member GetDataSourceByName : 
        name:string -> DataSource 
public function GetDataSourceByName(
    name : String
) : DataSource

Parameters