Share via


DataSourceCollection.FindByName(String) Method

Definition

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

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

Parameters

name
String

The name of the DataSource to locate.

Returns

The DataSource with the specified name, if it exists in the collection; otherwise, a null reference (Nothing in Visual Basic).

Applies to