uap:AppService (Windows 10)

Declares an app extensibility point of type windows.appService. Application Contracts are a way for an app to invoke a background task belonging to another app; or for a background task invoked to service an app contract a way to communicate with its caller.

Element hierarchy

<Package>
<Applications>
<Application>
<Extensions>
<uap:Extension>
<uap:AppService>

Syntax

<AppService Name        = A string between 2 and 39 characters in length that consists of alphanumeric, period (except for the first character), and dash characters only.
            ServerName? = An alphanumeric string between 1 and 255 characters in length. Must begin with an alphabetic character. 
            uap4:SupportsMultipleInstances = Boolean. />

Key

?   optional (zero or one)

Attributes and Elements

Attributes

Attribute Description Data type Required Default value
Name

The service name (used to match the caller of the Application Contract with the provider).

A string between 2 and 39 characters in length that consists of alphanumeric, period (except for the first character), and dash characters only. Yes
ServerName

The COM server to be instantiated to satisfy the contract activation (ensures that only one instance of the server exists at runtime). This is an optional attribute that is only used for PPLE host processes.

An alphanumeric string between 1 and 255 characters in length. Must begin with an alphabetic character. No
uap4:SupportsMultipleInstances

Supports multiple, separate instances of an app service.

Boolean. No

 

Child Elements

None.

Parent Elements

Parent Element Description
uap:Extension

Declares an extensibility point for the app.

 

Requirements

Value
Namespace http://schemas.microsoft.com/appx/manifest/uap/windows10