Contains
Last modified: October 13, 2012
Applies to: Exchange Online | Exchange Server 2007 | Exchange Server 2010 | Exchange Server 2013 | Office 365
The Contains element represents a search expression that determines whether a given property contains the supplied constant string value.
<Contains ContainmentMode="" ContainmentComparison=""> <FieldURI/> <Constant/> </Contains>
<Contains ContainmentMode="" ContainmentComparison=""> <IndexedFieldURI/> <Constant/> </Contains>
<Contains ContainmentMode="" ContainmentComparison=""> <ExtendedFieldURI/> <Constant/> </Contains>
ContainsExpressionType
The following sections describe attributes, child elements, and parent elements.
Attributes
|
Attribute |
Description |
|---|---|
|
ContainmentMode |
Identifies the boundaries of a search. |
|
ContainmentComparison |
Determines whether the search ignores cases and spaces. |
ContainmentMode Attribute Values
|
Value |
Description |
|---|---|
|
FullString |
The comparison is between the full string and the constant. The property value and the supplied constant are precisely the same. |
|
Prefixed |
The comparison is between the string prefix and the constant. |
|
Substring |
The comparison is between a substring of the string and the constant. |
|
PrefixOnWords |
The comparison is between a prefix on individual words in the string and the constant. |
|
ExactPhrase |
The comparison is between an exact phrase in the string and the constant. |
ContainmentComparison Attribute Values
|
Value |
Description |
|---|---|
|
Exact |
The comparison must be exact. |
|
IgnoreCase |
The comparison ignores casing. |
|
IgnoreNonSpacingCharacters |
The comparison ignores non-spacing characters. |
|
Loose |
To be removed. |
|
IgnoreCaseAndNonSpacingCharacters |
The comparison ignores casing and non-spacing characters. |
|
LooseAndIgnoreCase |
To be removed. |
|
LooseAndIgnoreNonSpace |
To be removed. |
|
LooseAndIgnoreCaseAndIgnoreNonSpace |
To be removed. |
Child elements
|
Element |
Description |
|---|---|
|
Identifies frequently referenced properties by URI. |
|
|
Identifies individual members of a dictionary. |
|
|
Identifies MAPI properties. |
|
|
Identifies a constant value in a restriction. |
Parent elements
|
Element |
Description |
|---|---|
|
Represents the restriction or query that is used to filter items or folders in FindItem/FindFolder and search folder operations. |
|
|
Represents a search expression that negates the Boolean value of the search expression it contains. |
|
|
Represents a search expression that allows you to perform a Boolean And operation between two or more search expressions. The result of the And operation is true if all of the search expressions contained within the And are true. |
|
|
Represents a search expression that performs a logical OR on the search expression it contains. The Or element will return true if any of its children return true. |