ChangeDatabase 메서드
Changes the current database of the open AdomdConnection.
네임스페이스: Microsoft.AnalysisServices.AdomdClient
어셈블리: Microsoft.AnalysisServices.AdomdClient.dll의 Microsoft.AnalysisServices.AdomdClient
구문
‘선언
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. |