共用方式為


類別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類別SMS_OperatingSystemInstallPackage中的伺服器 WMI 類別GetImageProperties 方法