Freigeben über


Server.GetConnectionState(Boolean) Method

Definition

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.

Applies to