Share via


2.2.16 ItemHasKnownEntity

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

Defines a rule that evaluates to true if the item contains text of the specified entity type in its subject or body.

Attributes:

EntityType: A KnownEntityType attribute (section 2.3.14) that specifies the type of entity that MUST be found for the rule to evaluate to true.

RegExFilter: A NonEmptyString attribute (section 2.3.1) that specifies a regular expression to evaluate against the entity. If the evaluation results in a match, then the rule evaluates to true. If it does not result in a match, the rule evaluates to false.

FilterName: A NonEmptyString attribute (section 2.3.1) that specifies the name of the regular expression filter contained in the RegExFilter attribute.

IgnoreCase: A boolean attribute ([XMLSCHEMA2] section 3.2.2) that specifies whether case is ignored when evaluating the regular expression specified by the RegExFilter attribute.

The following W3C XML Schema ([XMLSCHEMA1/2] section 2.1) fragment specifies the contents of this complex type.

 <xs:complexType name="ItemHasKnownEntity">
   <xs:complexContent>
     <xs:extension base="Rule">
       <xs:attribute name="EntityType" type="KnownEntityType" use="required"/>
       <xs:attribute name="RegExFilter" type="NonEmptyString" use="optional"/>
       <xs:attribute name="FilterName" type="NonEmptyString" use="optional"/>
       <xs:attribute name="IgnoreCase" type="xs:boolean" use="optional"/>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>

See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1/2] section 2.1).