Capabilities (package schema for Windows 8)
Declares the access to protected user resources that the package requires.
Element hierarchy
- <Package>
- <Capabilities>
Syntax
<Capabilities>
<!-- Child elements -->
Capability{0,10},
DeviceCapability{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. |
DeviceCapability | Declares a device capability required by a package. |
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 do not explicitly declare the capabilities required for your app to access user resources, your app cannot access that resource. However, even if you declare a capability, your app still won't have access to the user resource if it does not 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
Requirements
Value | |
---|---|
Namespace | http://schemas.microsoft.com/appx/2010/manifest |