uap:BackgroundTasks
Defines an app extensibility point of type windows.backgroundTasks. Background tasks run in a dedicated background host; that is, without a UI.
Element hierarchy
-
-
-
-
- <uap:Extension>
<uap:BackgroundTasks>
- <uap:Extension>
-
-
-
Syntax
<BackgroundTasks ServerName? = An alphanumeric string between 1 and 255 characters in length. Must begin with an alphabetic character. >
<!-- Child elements -->
uap:Task{1,17}
</uap: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. |
An alphanumeric string between 1 and 255 characters in length. Must begin with an alphabetic character. | No |
Child Elements
Child Element | Description |
---|---|
uap:Task | The background task associated with the app extensibility point. |
Parent Elements
Parent Element | Description |
---|---|
uap:Extension | 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
Namespace |
https://schemas.microsoft.com/appx/manifest/uap/windows10 |