uap2:Capability (Windows 10)

Declares a capability required by a package.

Element hierarchy

<Package>

    <Capabilities>

         <uap2:Capability>

Syntax

<uap2:Capability
    Name = 'A string that can have one of the following values: "phoneCallHistoryPublic" or "spatialPerception".' />

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: phoneCallHistoryPublic or spatialPerception. Yes

Child elements

None.

Parent elements

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

Examples

<Package
    xmlns:uap2="http://schemas.microsoft.com/appx/manifest/uap/windows10/2"  
    IgnorableNamespaces="uap2">
    <Capabilities>
        <uap2:Capability
            Name="phoneCallHistoryPublic"/>  
        <uap2:Capability
            Name="spatialPerception"/>  
    </Capabilities>
</Package>

Requirements

Item Value
Namespace http://schemas.microsoft.com/appx/manifest/uap/windows10/2
Minimum OS Version Windows 10 version 1511 (Build 10586)