共用方式為


類別SMS_OperatingSystemInstallPackage中的 GetImageProperties 方法

Windows GetImageProperties Management Instrumentation (WMI) 類別方法,在Configuration Manager中,會將所有中繼資料從指定的 .wim 原始程式檔讀取到 XML 字串。

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

語法

SInt32 GetImageProperties(  
      String SourceImagePath,  
      String ImageProperty  
);  

參數

SourceImagePath
資料類型:String

限定詞:[in]

要查詢中繼資料之來源檔案的路徑。

ImageProperty
資料類型:String

限定詞:[out]

定義中繼資料的 XML 字串。

傳回值

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

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

註解

這個方法會使用 ImageProperty SMS_OperatingSystemInstallPackage Server WMI 類別的 屬性來存取來源 .wim 檔案中繼資料。

需求

執行時間需求

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

開發需求

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

另請參閱

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