Windows BlockClients Management Instrumentation (WMI) 類別方法,Configuration Manager 會封鎖指定的用戶端計算機與站台通訊。
下列語法是從受控物件格式 (MOF) 程式代碼中簡化,並定義方法。
語法
SInt32 BlockClients(
UInt32 ResourceIDs[],
Boolean Blocked
);
參數
ResourceIDs 數據類型: UInt32 陣列
限定符:[in]
成員資源的標識碼。
Blocked 資料類型: Boolean
限定符:[in, optional]
true 如果資源遭到封鎖而無法與網站通訊,則為 。 默認值為 true。
傳回值
數據 SInt32 類型,為 0 表示成功或非零表示失敗。
如需處理傳回錯誤的詳細資訊,請參閱關於 Configuration Manager 錯誤。
需求
運行時間需求
如需詳細資訊,請參閱 Configuration Manager 伺服器運行時間需求。
開發需求
如需詳細資訊,請參閱 Configuration Manager 伺服器開發需求。