类SMS_OperatingSystemInstallPackage中的 GetImageProperties 方法

GetImageProperties在 Configuration Manager 中,Windows Management Instrumentation (WMI) 类方法将所有元数据从指定的 .wim 源文件读取到 XML 字符串。

以下语法从托管对象格式 (MOF) 代码中简化,并定义了 方法。

语法

SInt32 GetImageProperties(  
      String SourceImagePath,  
      String ImageProperty  
);  

参数

SourceImagePath
数据类型String

限定符:[in]

要查询元数据的源文件的路径。

ImageProperty
数据类型String

限定符:[out]

定义元数据的 XML 字符串。

返回值

一个 SInt32 数据类型,为 0 表示成功,非零表示失败。

有关处理返回的错误的信息,请参阅关于Configuration Manager错误

备注

此方法使用 ImagePropertySMS_OperatingSystemInstallPackage 服务器 WMI 类的 属性访问源 .wim 文件元数据。

要求

运行时要求

有关详细信息,请参阅Configuration Manager服务器运行时要求

开发要求

有关详细信息,请参阅Configuration Manager服务器开发要求

另请参阅

SMS_OperatingSystemInstallPackage服务器 WMI 类
类SMS_OperatingSystemInstallPackage中的 ReloadImageProperties 方法