BackgroundTasks (extensions schema for Windows 8.1)
Defines an app extensibility point of type windows.backgroundTasks. Background tasks run in a dedicated background host; that is, without a UI.
Element hierarchy
- <Extension>
- <BackgroundTasks>
Syntax
<BackgroundTasks ServerName? = A string between 1 and 255 characters in length. >
<!-- Child elements -->
TaskChoice{1,8}
</BackgroundTasks>
Key
?
optional (zero or one)
{}
specific range of occurrences
Attributes and Elements
Attributes
Attribute | Description | Data type | Required | Default value |
---|---|---|---|---|
ServerName | The server name. Ensures that only one instance of the server exists at runtime. |
A string between 1 and 255 characters in length. | No |
Child Elements
Child Element | Description |
---|---|
TaskChoice | The abstract task choice element for the XSD substitution group. This can't be declared in the XML. |
Parent Elements
Parent Element | Description |
---|---|
Extension (type: CT_ApplicationExtension) | Declares an extensibility point for the app. |
Remarks
Extensions of type "windows.backgroundTask" must specify either a StartPage or EntryPoint attribute in the Extension element. For more info (and an example) see How to declare background tasks in the application manifest (JavaScript and HTML) or How to declare background tasks in the application manifest (C#/VB/C++ and XAML).
Requirements
Value | |
---|---|
Namespace | http://schemas.microsoft.com/appx/2010/manifest |