Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ItemHasRegularExpressionMatch complexType

ItemHasRegularExpressionMatch complexType (app manifest schema v1.1)

Office Add-ins

Defines a rule that evaluates to true if a match for the specified regular expression can be found in the specified property of the item.

Last modified: March 09, 2015

Note Note

The name "apps for Office" is changing to "Office Add-ins". During the transition, the documentation and the UI of some Office host applications and Visual Studio tools might still use the term "apps for Office".

Namespace

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

Schema file

offappmanifest.xsd

Extension base

Rule

<xs:complexType name="ItemHasRegularExpressionMatch">
    <xs:complexContent>
        <xs:extension base="Rule">
            <xs:attribute name="RegExName" type="NonEmptyString" use="required" />
            <xs:attribute name="RegExValue" type="NonEmptyString" use="required" />
            <xs:attribute name="PropertyName" type="PropertyName" use="required" />
            <xs:attribute name="IgnoreCase" type="xs:boolean" use="optional" />
        </xs:extension>
    </xs:complexContent>
</xs:complexType>

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

Child elements

None.

Attributes

Attribute

Type

Required

Description

Possible values

IgnoreCase

xs:boolean

optional

Specifies to ignore the case when executing the regular expression.

Values of the xs:boolean type.

PropertyName

PropertyName

required

Specifies the name of the property in which to look for matches.

Values of the PropertyName type.

RegExName

NonEmptyString

required

Specifies the name of the regular expression, so that it is subsequently possible to refer to it by code.

Values of the NonEmptyString type.

RegExValue

NonEmptyString

required

Specifies the regular expression to match.

Values of the NonEmptyString type.

Show:
© 2015 Microsoft