Close 메서드 (Boolean)
Closes the connection to the database, indicating whether to end the session.
네임스페이스: Microsoft.AnalysisServices.AdomdClient
어셈블리: Microsoft.AnalysisServices.AdomdClient(Microsoft.AnalysisServices.AdomdClient.dll)
구문
‘선언
Public Sub Close ( _
endSession As Boolean _
)
‘사용 방법
Dim instance As AdomdConnection
Dim endSession As Boolean
instance.Close(endSession)
public void Close(
bool endSession
)
public:
void Close(
bool endSession
)
member Close :
endSession:bool -> unit
public function Close(
endSession : boolean
)
매개 변수
- endSession
유형: System. . :: . .Boolean
A Boolean that indicates whether to end the session associated with the AdomdConnection.
주의
If the Close method is called without specifying the value of the endSession parameter, or if the endSession parameter is set to true, both the connection and the session associated with the connection are closed. If the Close method is called with the endSession parameter set to false, the session associated with the AdomdConnection remains active, but the connection is closed.
If the Dispose method is called with the disposing parameter set to true, the Close method is called without specifying the value of the endSession parameter.
You can reconnect to an active session after calling this method by setting the SessionID property to a valid active session ID and then calling the Open method.