Поделиться через


Метод GetConnectionState

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

Пространство имен:  Microsoft.AnalysisServices
Сборка:  Microsoft.AnalysisServices (в Microsoft.AnalysisServices.dll)

Синтаксис

'Декларация
Public Function GetConnectionState ( _
    pingServer As Boolean _
) As ConnectionState
'Применение
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

Параметры

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

Возвращаемое значение

Тип System.Data. . :: . .ConnectionState
A ConnectionState enumeration describing the current state of the connection.