Edit

Task

The background task associated with the app extensibility point.

Element hierarchy

<Package>
   └─ <Extensions>
      └─ <Extension>
         └─ <BackgroundTasks>
            └─ <Task>
   └─ <Applications>
      └─ <Application>
         └─ <Extensions>
            └─ <Extension>
               └─ <BackgroundTasks>
                  └─ <Task>

Syntax

<Package
  xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10">
  ...
  <Task
    Type = 'A required string that can have one of the following values: "general", "audio", "controlChannel", "systemEvent", "timer", "pushNotification", "location", "deviceUse", "deviceServicing", "deviceConnectionChange", or "bluetooth".' />
</Package>

Attributes

Attribute Description Data type Required Default value
Type The task type. A string that can have one of the following values: general, audio, controlChannel, systemEvent, timer, pushNotification, location, deviceUse, deviceServicing, deviceConnectionChange, bluetooth. Yes

Child elements

None.

Parent elements

Parent element Description
BackgroundTasks Defines an app extensibility point of type windows.backgroundTasks. Background tasks run in a dedicated background host; that is, without a UI.

Requirements

Item Value
Namespace http://schemas.microsoft.com/appx/manifest/foundation/windows10
Minimum OS Version

Remarks

Examples