Share via


DataSourceCollection.GetByName(String) Method

Definition

Gets the DataSource that has the specified name from the collection.

public Microsoft.AnalysisServices.DataSource GetByName (string name);
member this.GetByName : string -> Microsoft.AnalysisServices.DataSource
Public Function GetByName (name As String) As DataSource

Parameters

name
String

The name of the DataSource to locate.

Returns

The DataSource with the specified Name.

Exceptions

The collection doesn't contain a DataSource with the specified name.

Applies to