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.