Win32_TSSessionDirectory 類別的 SetSessionDirectoryProperty 方法
設定 類別的 SessionDirectoryLocation 屬性或 SessionDirectoryClusterName 屬性。
uint32 SetSessionDirectoryProperty(
[in] string PropertyName,
[in] string Value
);
-
PropertyName [in]
-
類型: 字串
指定方法正在設定的屬性。
-
SessionDirectoryLocation
-
方法正在設定 SessionDirectoryLocation 屬性。
-
SessionDirectoryClusterName
-
方法正在設定 SessionDirectoryClusterName 屬性。
值 [in]
類型: 字串
PropertyName參數所指定之屬性的新值。
類型: uint32
在成功時傳回 0,否則會傳回 WMI 錯誤碼。 如需這些值的清單,請參閱 遠端桌面服務 WMI 提供者錯誤碼 。 如果設定在群組原則控制下,此方法會傳回錯誤。
Managed 物件格式 (MOF) 檔案包含 Windows Management Instrumentation (WMI) 類別的定義。 MOF 檔案不會安裝為 Microsoft Windows 軟體發展工具組 (SDK) 的一部分。 當您使用 伺服器管理員 新增相關聯的角色時,它們會安裝在伺服器上。 如需 MOF 檔案的詳細資訊,請參閱 Managed 物件格式 (MOF) 。
需求 | 值 |
---|---|
最低支援的用戶端 |
都不支援 |
最低支援的伺服器 |
Windows Server 2008 |
命名空間 |
Root\CIMv2\TerminalServices |
MOF |
|
DLL |
|