Метод AdomdConnection.ChangeDatabase
Changes the current database of the open AdomdConnection.
Пространство имен: Microsoft.AnalysisServices.AdomdClient
Сборка: Microsoft.AnalysisServices.AdomdClient (в Microsoft.AnalysisServices.AdomdClient.dll)
Синтаксис
'Декларация
Public Sub ChangeDatabase ( _
database As String _
)
'Применение
Dim instance As AdomdConnection
Dim database As String
instance.ChangeDatabase(database)
public void ChangeDatabase(
string database
)
public:
virtual void ChangeDatabase(
String^ database
) sealed
abstract ChangeDatabase :
database:string -> unit
override ChangeDatabase :
database:string -> unit
public final function ChangeDatabase(
database : String
)
Параметры
- database
Тип: System.String
The name of the database to which the AdomdConnection should connect.
Реализует
IDbConnection.ChangeDatabase(String)
Исключения
Исключение | Условие |
---|---|
System.InvalidOperationException | The database parameter is set to a nullпустая ссылка (Nothing в Visual Basic) value, an empty string, or a string containing only spaces. The AdomdConnection is not connected to a valid session. |