Win32_SessionBrokerServiceProperties 类的 IsDbReachable 方法

检查数据库是否可访问。

语法

uint32 IsDbReachable(
  [in] string connStringToDb,
  [in] string connSecondaryStringToDb,
  [in] string activeBrokerName
);

参数

connStringToDb [in]

用于连接到数据库的连接字符串。

connSecondaryStringToDb [in]

中央数据库的辅助连接字符串。

Windows Server 2012 R2 和 Windows Server 2012:此参数在Windows Server 2016之前不可用。

activeBrokerName [in]

活动代理名称。

Windows Server 2012 R2 和 Windows Server 2012:此参数在Windows Server 2016之前不可用。

要求

要求
最低受支持的客户端
无受支持的版本
最低受支持的服务器
Windows Server 2012
命名空间
Root\CIMv2\TerminalServices
MOF
TssdWmi.mof
DLL
TssdWmi.dll

另请参阅

Win32_SessionBrokerServiceProperties