Server.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
true to indicate that an empty statement will be sent to the server to verify whether the connection is open; otherwise, false.
返回值
类型:System.Data.ConnectionState
A ConnectionState enumeration describing the current state of the connection.