Metodo ChangeDatabase

Changes the current database of the open AdomdConnection.

Spazio dei nomi  Microsoft.AnalysisServices.AdomdClient
Assembly:  Microsoft.AnalysisServices.AdomdClient (in Microsoft.AnalysisServices.AdomdClient.dll)

Sintassi

'Dichiarazione
Public Sub ChangeDatabase ( _
    database As String _
)
'Utilizzo
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
)

Parametri

Implementa

IDbConnection. . :: . .ChangeDatabase(String)

Eccezioni

Eccezione Condizione
System..::..InvalidOperationException

The database parameter is set to a null Nothing nullptr unit riferimento Null (Nothing in Visual Basic). value, an empty string, or a string containing only spaces.

The AdomdConnection is not connected to a valid session.