uap3:Capability (Windows 10)

Declares a capability required by a package.

Element hierarchy

<Package>

    <Capabilities>

         <uap3:Capability>

Syntax

<uap3:Capability
    Name = 'A string that can have one of the following values: "backgroundMediaPlayback" or "userNotificationListener".' />

Attributes and elements

Attributes

Attribute Description Data type Required Default value
Name The name of the capability. A string that can have one of the following values: backgroundMediaPlayback or userNotificationListener. Yes

Child elements

None.

Parent elements

Parent Element Description
Capabilities Declares the access to protected user resources that the package requires.

Examples

<Package
    xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3"  
    IgnorableNamespaces="uap3">
    <Capabilities>
        <uap3:Capability
            Name="backgroundMediaPlayback"/>  
        <uap3:Capability
            Name="userNotificationListener"/>  
    </Capabilities>
</Package>

Requirements

Item Value
Namespace http://schemas.microsoft.com/appx/manifest/uap/windows10/3
Minimum OS Version Windows 10 version 1607 (Build 14393)