Метод 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.
Реализует интерфейс
Исключения
Исключение | Условие |
---|---|
System..::..InvalidOperationException | The database parameter is set to a null Nothing nullptr unit пустая ссылка (Nothing в Visual Basic) value, an empty string, or a string containing only spaces. The AdomdConnection is not connected to a valid session. |