DataSourceCollection.GetByName Method (String)

 

Applies To: SQL Server 2016 Preview

Gets the DataSource, with the specified name, from the collection.

Namespace:   Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Syntax

public DataSource GetByName(
    string name
)
public:
DataSource^ GetByName(
    String^ name
)
member GetByName : 
        name:string -> DataSource
Public Function GetByName (
    name As String
) As DataSource

Parameters

Return Value

Type: Microsoft.AnalysisServices.DataSource

The DataSource if contained in the collection.

Exceptions

Exception Condition
ItemNotFoundException

name is not contained by the collection.

See Also

DataSourceCollection Class
Microsoft.AnalysisServices Namespace

Return to top