ContainsContains

Contains元素表示一个搜索表达式,用于确定给定属性是否包含提供的常量字符串值。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="">
   <ExtendedFieldURI/>
   <Constant/>
</Contains>
<Contains ContainmentMode="" ContainmentComparison="">
   <IndexedFieldURI/>
   <Constant/>
</Contains>

ContainsExpressionTypeContainsExpressionType

属性和元素Attributes and elements

下面各部分介绍了属性、子元素和父元素。The following sections describe attributes, child elements, and parent elements.

AttributesAttributes

属性Attribute 说明Description
ContainmentModeContainmentMode
标识搜索的边界。Identifies the boundaries of a search.
ContainmentComparisonContainmentComparison
确定搜索是否忽略大小写和空格。Determines whether the search ignores cases and spaces.

ContainmentMode 属性值ContainmentMode attribute values

Value 说明Description
FullStringFullString
在完整字符串和常量之间进行比较。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.
PrefixOnWordsPrefixOnWords
在字符串中单个词的前缀和常量之间进行比较。The comparison is between a prefix on individual words in the string and the constant.
ExactPhraseExactPhrase
在字符串中的精确短语和常量之间进行比较。The comparison is between an exact phrase in the string and the constant.

ContainmentComparison 属性值ContainmentComparison attribute values

Value 说明Description
混杂Exact
比较必须准确。The comparison must be exact.
IgnoreCaseIgnoreCase
比较将忽略大小写。The comparison ignores casing.
IgnoreNonSpacingCharactersIgnoreNonSpacingCharacters
比较将忽略非空格字符。The comparison ignores non-spacing characters.
稀疏Loose
要删除的。To be removed.
IgnoreCaseAndNonSpacingCharactersIgnoreCaseAndNonSpacingCharacters
比较将忽略大小写和非空格字符。The comparison ignores casing and non-spacing characters.
LooseAndIgnoreCaseLooseAndIgnoreCase
要删除的。To be removed.
LooseAndIgnoreNonSpaceLooseAndIgnoreNonSpace
要删除的。To be removed.
LooseAndIgnoreCaseAndIgnoreNonSpaceLooseAndIgnoreCaseAndIgnoreNonSpace
要删除的。To be removed.

子元素Child elements

元素Element 描述Description
FieldURIFieldURI
标识由 URI 频繁引用的属性。Identifies frequently referenced properties by URI.
IndexedFieldURIIndexedFieldURI
标识词典中的各个成员。Identifies individual members of a dictionary.
ExtendedFieldURIExtendedFieldURI
标识 MAPI 属性。Identifies MAPI properties.
常量Constant
标识限制中的常量值。Identifies a constant value in a restriction.

父元素Parent elements

元素Element 描述Description
限制Restriction
表示用于在 FindItem/FindFolder 中筛选项目或文件夹和搜索文件夹操作的限制或查询。Represents the restriction or query that is used to filter items or folders in FindItem/FindFolder and search folder operations.
notNot
表示对其包含的搜索表达式的布尔值求反的搜索表达式。Represents a search expression that negates the Boolean value of the search expression it contains.
AndAnd
表示允许您在两个或多个搜索表达式之间执行布尔 And 运算的搜索表达式。Represents a search expression that allows you to perform a Boolean And operation between two or more search expressions. 如果和中包含的所有搜索表达式均为 true,则 and 操作的结果为trueThe result of the And operation is true if all of the search expressions contained within the And are true.
Or
表示在其包含的搜索表达式上执行逻辑 OR 的搜索表达式。Represents a search expression that performs a logical OR on the search expression it contains. 如果其任何子级返回true,则元素将返回trueThe Or element will return true if any of its children return true.

备注Remarks

属性用于确定元素的匹配方式。The attributes are used to determine how the elements are matched.

描述此元素的架构位于正在运行 MicrosoftExchange Server 2007 的计算机(已安装客户端访问服务器角色)的 EWS 虚拟目录中。The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server 2007 that has the Client Access server role installed.

元素信息Element information

命名空间Namespace
https://schemas.microsoft.com/exchange/services/2006/types
架构名称Schema Name
类型架构Types schema
验证文件Validation File
Types.xsdTypes.xsd
可以为空Can be Empty
FalseFalse

另请参阅See also