类 SMS_BootImagePackage 中的 GetImageProperties 方法

在 Configuration Manager 中,GetImagePropertiesWindows Management Instrumentation (WMI) 类方法将启动映像的指定 .wim 源文件中的所有元数据读取为 XML 字符串。

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

语法

SInt32 GetImageProperties(
      String SourceImagePath,
      String ImageProperty
);

参数

SourceImagePath 类型: String

限定符: [in]

用于查询元数据的 .wim 源文件的路径。

ImageProperty 类型: String

限定符:[out]

包含图像元数据的 XML 文档。

返回值

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

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

备注

此方法使用 ImagePropertySMS_BootImagePackage Server WMI 类的属性访问源 .wim 文件元数据。

要求

运行时要求

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

开发要求

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

另请参阅

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