Partager via


Order

Applies To: Windows 7, Windows 8

Important

This setting has been deprecated in Windows® 8.1. The information about this deprecated setting is provided for reference only.

The Order setting specifies the order in which the sensor is modified when more than one sensor is scheduled to be modified. This setting is required, even if you modify only one sensor.

When modifying any number of sensors, use the sensor order starting with 1 and incrementing by 1 (1, 2, 3, and so on).

When sensor categories and types overlap, the setting that is applied last will override previous values.

Values

Order_number

Specifies the order in which the sensor is modified

Valid Configuration Passes

oobeSystem

Parent Hierarchy

Microsoft-Windows-MobilePC-Sensors-API | SensorPermissions | Sensor | Order

Applies To

For a list of the supported Windows® editions and architectures that this component supports, see Microsoft-Windows-MobilePC-Sensors-API.

XML Example

The following example XML output shows how to specify that all motion sensors are enabled, except for speedometer sensors. In this example:

  • The GUID {CD09DAF1-3B2E-4C3D-B598-B5E5FF93FD46} maps to the sensor category: motion sensors.

  • The GUID {6BD73C1F-0BB4-4310-81B2-DFC18A52BF94} maps to the sensor type: speedometers.

The first instruction enables all motion sensors. The second instruction disables speedometers. The result is all motion sensors are enabled except speedometers.

<SensorPermissions>
  <Sensor wcm:action="add">
    <Order>1</Order>
    <GUID>{CD09DAF1-3B2E-4C3D-B598-B5E5FF93FD46}</GUID>
    <GUIDClassification>Category</GUIDClassification>
    <Enable>true</Enable>
  </Sensor>
  <Sensor wcm:action="add">
    <Order>2</Order>
    <GUID>{6BD73C1F-0BB4-4310-81B2-DFC18A52BF94}</GUID>
    <GUIDClassification>Type</GUIDClassification>
    <Enable>false</Enable>
  </Sensor>
</SensorPermissions>

The following example shows these operations in the reverse order: The first instruction disables speedometers. The second instruction enables all motion sensors, including the previously-disabled speedometers. The result is that all motion sensors are enabled.

<SensorPermissions>
  <Sensor wcm:action="add">
    <Order>1</Order>
    <GUID>{6BD73C1F-0BB4-4310-81B2-DFC18A52BF94}</GUID>
    <GUIDClassification>Type</GUIDClassification>
    <Enable>false</Enable>
  </Sensor>
  <Sensor wcm:action="add">
    <Order>2</Order>
    <GUID>{CD09DAF1-3B2E-4C3D-B598-B5E5FF93FD46}</GUID>
    <GUIDClassification>Category</GUIDClassification>
    <Enable>true</Enable>
  </Sensor>
</SensorPermissions>

See Also

Concepts

Sensor