Compartilhar via


Método GetConnectionState

Gets the current state of the connection to the Analysis Services server.

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (em Microsoft.AnalysisServices.dll)

Sintaxe

'Declaração
Public Function GetConnectionState ( _
    pingServer As Boolean _
) As ConnectionState
'Uso
Dim instance As Server
Dim pingServer As Boolean
Dim returnValue As ConnectionState

returnValue = instance.GetConnectionState(pingServer)
public ConnectionState GetConnectionState(
    bool pingServer
)
public:
ConnectionState GetConnectionState(
    bool pingServer
)
member GetConnectionState : 
        pingServer:bool -> ConnectionState 
public function GetConnectionState(
    pingServer : boolean
) : ConnectionState

Parâmetros

  • pingServer
    Tipo: System. . :: . .Boolean
    Indicates whether an empty statement will be sent to the server to verify whether the connection is open.

Valor de retorno

Tipo: System.Data. . :: . .ConnectionState
A ConnectionState enumeration describing the current state of the connection.