共用方式為


ModelIDList

MBAE 棄用通知

Important

從 Windows 10 版本 1803 開始,MBAE 應用程式體驗會由MO UWP 應用程式取代。 如需MO UWP 應用程式的詳細資訊,請參閱 UWP行動寬頻應用程式

ModelIDList 元素會指定一或多個 GUID。 Each GUID is specified through a ModelID element, and identifies a physical device specified within the device metadata package.

Caution The ModelIDList and ModelID elements are not supported for service metadata packages. You must use the HardwareIDList and HardwareID elements instead.

Usage

<ModelIDList>
  child elements
</ModelIDList>

Attributes

沒有屬性。

Child elements

Element Description

ModelID

The ModelID element specifies the GUID of a physical device.

Parent elements

Element Description

MetadataKey

The MetadataKey element specifies the attributes of the device metadata package. 這些包括下列各項:

  • 裝置所支援之每個硬體功能的標識碼。

  • 套件內文字字串的語言特定地區設定。

XSD

<xs:element name="ModelIDList" type="tns:ModelIDListType" minOccurs="0" />

<xs:complexType name="ModelIDListType">
  <xs:sequence>
    <xs:element name="ModelID" type="tns:GUIDType" maxOccurs="unbounded" />
  </xs:sequence>
</xs:complexType>

Remarks

The ModelIDList element is required only if the HardwareIDList element is not specified in the MetadataKey element. If it is specified, the ModelIDList element must contain one or more ModelID elements. 如果您的裝置中繼資料套件支援多個裝置型號或型號 ID,您可以為每個裝置型號指定 ModelID 元素。

Caution The ModelIDList and ModelID elements are not supported for service metadata packages. You must use the HardwareIDList and HardwareID elements instead.

If the PackageInfo XML data contains both of the HardwareIDList and ModelIDList elements, the operating system uses the following rules when it determines whether a device is specified by a device metadata package:

  • If the device has a model ID, the operating system does not search for a match in the HardwareIDList element. For more information about model IDs, see ModelID.

  • Otherwise, the operating searches the HardwareIDList element for a match of the device's hardware ID.