BackgroundTasks
Réduire la table des matières
Développer la table des matières

BackgroundTasks

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

Hiérarchie d’éléments

<Package>
<Applications>
<Application>
<Extensions>
<Extension>
<BackgroundTasks>

Syntaxe

<BackgroundTasks ServerName? = A string between 1 and 255 characters in length. >

  <!-- Child elements -->
  Task{1,5}

</BackgroundTasks>

Clé

?   facultatif (zéro ou un)
{}   plage d’occurrences spécifique

Attributes and Elements

Attributes

AttributeDescriptionData typeRequiredDefault 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 ElementDescription
Task

The background task associated with the app extensibility point.

 

Parent Elements

Parent ElementDescription
Extension (in type: CT_ApplicationExtensions)

Declares an extensibility point for the app.

 

Remarques

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).

Configuration requise

Espace de noms

http://schemas.microsoft.com/appx/2010/manifest

 

 

Afficher:
© 2017 Microsoft