Server.GetConnectionState(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the current state of the connection to the Analysis Services server.
public System.Data.ConnectionState GetConnectionState (bool pingServer);
member this.GetConnectionState : bool -> System.Data.ConnectionState
Public Function GetConnectionState (pingServer As Boolean) As ConnectionState
Parameters
- pingServer
- Boolean
true to indicate that an empty statement will be sent to the server to verify whether the connection is open; otherwise, false.
Returns
A ConnectionState enumeration describing the current state of the connection.