Capabilities (extensions schema for Windows 8.1)

Declares the access to protected user resources that the package requires.

Element hierarchy

<Package>
<Capabilities>

Syntax

<Capabilities>

  <!-- Child elements -->
  Capability{0,10},
  DeviceCapabilityChoice{0,100}

</Capabilities>

Key

{}   specific range of occurrences

Attributes and Elements

Attributes

None.

Child Elements

Child Element Description
Capability

Declares a capability required by a package.

DeviceCapabilityChoice

The abstract device capability choice element for the XSD substitution group. This can't be declared in the XML.

 

Parent Elements

Parent Element Description
Package

Defines the root element of an app package manifest. The manifest describes the structure and capabilities of the software to the system.

 

Remarks

If you don't explicitly declare the capabilities required for your app to access user resources, your app can't access that resource. However, even if you declare a capability, your app still won't have access to the user resource if it doesn't exist on the system or there are other security policies in place that limit access to the resource.

Examples

Here's an example Capabilities node that declares 3 capabilities.

<Capabilities>
  <Capability Name="internetClient"/>
  <Capability Name="musicLibrary"/>
  <Capability Name="videosLibrary"/>
</Capabilities>

See also

App capability declarations

Requirements

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