AdomdConnection.Close Method (Boolean)
Closes the connection to the database, indicating whether to end the session.
Assembly: Microsoft.AnalysisServices.AdomdClient (in Microsoft.AnalysisServices.AdomdClient.dll)
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.