Expand Minimize

Rule element (RuleCollection complexType) (app manifest schema v1.1)

Specifies the list of rules that this collection contains.

Last modified: January 28, 2014

Mail app

Element type

Rule

Namespace

http://schemas.microsoft.com/office/appforoffice/1.0

Schema file

offappmanifest.xsd

<xs:element name="Rule" type="Rule" minOccurs="1" maxOccurs="unbounded"></xs:element>

If the schema defines specific requirements, such as sequence, minOccurs, maxOccurs, and choice, see the definition section.

Parent elements

None.

Child elements

None.

Attributes

None.

Because this Rule element is of the Rule abstract type and the RuleCollection type extends this abstract type, when specifying a rule collection in a manifest, use the xsi:type attribute to specify the RuleCollection type.

The first Rule element in the following rule collection is an example.

<Rule xsi:type="RuleCollection" Mode="And">
    <Rule xsi:type="ItemIs" ItemType="Message"/>
    <Rule xsi:type="ItemHasRegularExpressionMatch" RegExName="VideoURL" 
      RegExValue="http://www\.youtube\.com/watch\?v=[a-zA-Z0-9_-]{11}" 
      PropertyName="BodyAsPlaintext"/>
</Rule>

Show:
© 2014 Microsoft