共用方式為


類別SMS_OperatingSystemInstallPackage中的 ReloadImageProperties 方法

ReloadImageProperties Configuration Manager中,Windows Management Instrumentation WMI 類別方法會從來源 .wim 檔案重載中繼資料,並同步處理中繼資料與資料庫。

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

語法

SInt32 ReloadImageProperties();  

參數

無。

傳回值

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

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

註解

您的應用程式會使用這個方法來更新與作業系統安裝套件相關聯的 .wim 檔案。 更新是以 SMS_OperatingSystemInstallPackage Server WMI 類別的 屬性中 PkgSourcePath 定義的位置為基礎。

應用程式必須:

  1. 建立與 SMS 提供者的連線。 如需詳細資訊,請參閱關於 Configuration Manager 中的 SMS 提供者。

  2. 取得要更新的 SMS_OperatingSystemInstallPackage 物件。

  3. ReloadImageProperties呼叫 方法。

  4. SMS_OperatingSystemInstallPackage認可 物件。

需求

執行時間需求

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

開發需求

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

另請參閱

SMS_OperatingSystemInstallPackage伺服器 WMI 類別
類別SMS_OperatingSystemInstallPackage中的 GetImageProperties 方法