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 |
|
DLL |
|