Expand Minimize
This topic has not yet been rated - Rate this topic

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

Specifies the activation rule that should be evaluated for this mail app.

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="1"></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 there are rule complex types that extend this abstract type, when specifying an individual rule in a manifest, use the xsi:type attribute to specify one of these rule complex types. These types include the ItemIs, ItemHasAttachment, ItemHasKnownEntity, ItemHasRegularExpressionMatch complex types.

The second and third Rule elements in the following rule collection are examples:

<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>

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.