類別 SMS_BootImagePackage 中的 ReloadImageProperties 方法

ReloadImageProperties在 Configuration Manager 中的 Windows Management Instrumentation WMI 類別方法會從開機映像來源 .wim 檔案重新載入映像中繼資料,並將中繼資料與資料庫同步處理。

下列語法是從 [受控物件格式] 簡化而 (MOF) 程式碼,並定義方法。

語法

SInt32 ReloadImageProperties();

參數

無。

傳回值

SInt32資料類型為 0 表示成功,非零表示失敗。

如需處理傳回錯誤的相關資訊,請參閱 關於 Configuration Manager 錯誤。

註解

如果系統管理員變更 Configuration Manager 主控台外的開機映像來源 .wim 檔案,應用程式會使用此方法。 該應用程序應:

  1. 建立與簡訊提供者的連線。 如需詳細資訊,請參閱 SMS 提供者基礎。

  2. 取得要更新的 SMS_BootImagePackage Server WMI 類別 物件。

  3. 呼叫 ReloadImageProperties。

  4. 認可 SMS_BootImagePackage 物件。

需求

執行階段需求

如需詳細資訊,請參閱 Configuration Manager 伺服器執行階段需求。

開發需求

如需詳細資訊,請參閱 Configuration Manager 伺服器開發需求。

另請參閱

SMS_BootImagePackage Server WMI 類別SMS_BootImagePackage 中的 UpdateImage 方法