DatabaseCollection.GetByName Method (String)
Applies To: SQL Server 2016 Preview
Gets the Database, with the specified name, from the collection.
Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)
Syntax
public Database GetByName(
string name
)
public:
Database^ GetByName(
String^ name
)
member GetByName :
name:string -> Database
Public Function GetByName (
name As String
) As Database
Parameters
name
Type: System.StringThe name of the Database to be returned.
Return Value
Type: Microsoft.AnalysisServices.Database
The Database if contained in the collection.
Exceptions
Exception | Condition |
---|---|
ItemNotFoundException | name is not contained by the collection. |
See Also
DatabaseCollection Class
Microsoft.AnalysisServices Namespace
Return to top