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