AdomdConnection.ChangeDatabase Método
Changes the current database of the open AdomdConnection.
Espacio de nombres: Microsoft.AnalysisServices.AdomdClient
Ensamblado: Microsoft.AnalysisServices.AdomdClient (en Microsoft.AnalysisServices.AdomdClient.dll)
Sintaxis
'Declaración
Public Sub ChangeDatabase ( _
database As String _
)
'Uso
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
)
Parámetros
- database
Tipo: System.String
The name of the database to which the AdomdConnection should connect.
Implementa
IDbConnection.ChangeDatabase(String)
Excepciones
Excepción | Condición |
---|---|
System.InvalidOperationException | The database parameter is set to a nulles una referencia NULL (Nothing en Visual Basic). value, an empty string, or a string containing only spaces. The AdomdConnection is not connected to a valid session. |