Rule (extensions schema for Windows 8.1)

Specifies which pages in the web context have access to the system's geolocation devices (if the app has permission to access this capability) and access to the clipboard.

Element hierarchy

<Package>
<Applications>
<Application>
<ApplicationContentUriRules>
<Rule>

Syntax

<Rule Type  = "include" | "exclude"
      Match = A string between 1 and 2084 characters in length. />

Attributes and Elements

Attributes

Attribute Description Data type Required Default value
Match

The IRI to use in the rule. See RFC 3987 - Internationalized Resource Identifiers (IRIs) for details. It is unique per application in the package and is case sensitive.

A string between 1 and 2084 characters in length. Yes
Type

A string that specifies whether the rule is an inclusion or exclusion rule.

This attribute can have one of the following values:

  • include
  • exclude
Yes

 

Child Elements

None.

Parent Elements

Parent Element Description
ApplicationContentUriRules

Specifies which pages in the web context have access to the system's geolocation devices (if the app has permission to access this capability) and access to the clipboard.

 

Remarks

If more than one rule is defined, then the order of the rules is important.

To define the Match attribute with an IRI for a web resource, you can specify only secure "https:" sites - unsecure "http:" sites aren't allowed. If you specify a "http:" site, you get a schema semantic check validation error.

For any values that have a scheme in Windows 8.1 (version 6.3.0), the manifest only permits secure "https:" scheme. The manifest fails any other scheme. This rule doesn't apply on Windows 8 apps for backward compatibility.

Requirements

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