DatabaseCollection.GetByName(String) Method

Definition

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

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

Parameters

name
String

The name of the Database to locate.

Returns

The Database with the specified Name.

Exceptions

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

Applies to