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 null 參考 (在 Visual Basic 中為 Nothing) value, an empty string, or a string containing only spaces. The AdomdConnection is not connected to a valid session. |