Windows GetImageProperties Management Instrumentation (WMI) 類別方法,在 Configuration Manager 中,會將開機映射之指定 .wim 原始程序檔中的所有元數據讀取至 XML 字符串。
下列語法是從受控物件格式 (MOF) 程式代碼中簡化,並定義方法。
語法
SInt32 GetImageProperties(
String SourceImagePath,
String ImageProperty
);
參數
SourceImagePath 資料類型: String
限定符:[in]
要查詢元數據的 .wim 來源檔案路徑。
ImageProperty 資料類型: String
限定符:[out]
包含影像元數據的 XML 檔。
傳回值
數據 SInt32 類型,為 0 表示成功或非零表示失敗。
如需處理傳回錯誤的相關信息,請參閱關於 Configuration Manager 錯誤。
註解
這個方法會使用 ImageProperty SMS_BootImagePackage Server WMI 類別的 屬性來存取來源 .wim 檔案元數據。
需求
運行時間需求
如需詳細資訊,請參閱 Configuration Manager 伺服器運行時間需求。
開發需求
如需詳細資訊,請參閱 Configuration Manager 伺服器開發需求。
另請參閱
SMS_BootImagePackage類別中的伺服器 WMI 類別ReloadImageProperties 方法SMS_BootImagePackage