限制Restriction

限制元素表示用于筛选 FindItem/FindFolder 中的项或文件夹以及搜索文件夹操作的限制或查询。The Restriction element represents the restriction or query that is used to filter items or folders in FindItem/FindFolder and search folder operations.

<Restriction>
   <SearchExpression/>
</Restriction>

RestrictionTypeRestrictionType

属性和元素Attributes and elements

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

AttributesAttributes

无。None.

子元素Child elements

元素Element 说明Description
AndAnd
表示允许您在两个或多个搜索表达式之间执行布尔AND运算的搜索表达式。Represents a search expression that enables you to perform a Boolean AND operation between two or more search expressions.
ContainsContains
表示一个搜索表达式,该表达式确定给定属性是否包含提供的常量字符串值。Represents a search expression that determines whether a given property contains the supplied constant string value.
不包括Excludes
执行这些属性的位掩码。Performs a bitwise mask of the properties.
ExistsExists
表示在项上存在提供的属性时返回true的搜索表达式。Represents a search expression that returns true if the supplied property exists on an item.
IsEqualToIsEqualTo
表示搜索表达式,该表达式将属性与常数值或其他属性进行比较,如果它们相等,则计算结果为trueRepresents a search expression that compares a property with either a constant value or another property and evaluates to true if they are equal.
IsGreaterThanIsGreaterThan
表示一个搜索表达式,该表达式将属性与一个常数值或另一个属性进行比较,如果第一个属性大于值或属性,则返回 trueRepresents a search expression that compares a property with either a constant value or another property and returns true if the first property is greater than the value or property.
IsGreaterThanOrEqualToIsGreaterThanOrEqualTo
表示一个搜索表达式,该表达式将属性与一个常数值或另一个属性进行比较,如果第一个属性大于或等于 value 或属性,则返回 trueRepresents a search expression that compares a property with either a constant value or another property and returns true if the first property is greater than or equal to the value or property.
IsLessThanIsLessThan
表示用于将属性与常量值或其他属性进行比较的搜索表达式,如果第一个属性小于值或属性,则返回 trueRepresents a search expression that compares a property with either a constant value or another property and returns true if the first property is less than the value or property.
IsLessThanOrEqualToIsLessThanOrEqualTo
表示一个搜索表达式,该表达式将属性与一个常数值或另一个属性进行比较,如果第一个属性小于或等于 value 或属性,则返回 trueRepresents a search expression that compares a property with either a constant value or another property and returns true if the first property is less than or equal to the value or property.
IsNotEqualToIsNotEqualTo
表示用于将属性与常量值或其他属性进行比较的搜索表达式,如果值不相同,则返回 trueRepresents a search expression that compares a property with either a constant value or another property and returns true if the values are not the same.
NotNot
表示对其包含的搜索表达式的布尔值求反的搜索表达式。Represents a search expression that negates the Boolean value of the search expression it contains.
Or
表示在其包含的搜索表达式上执行逻辑OR运算的搜索表达式。Represents a search expression that performs a logical OR operation on the search expression it contains. 如果其任何子级返回true,则元素将返回trueThe Or element will return true if any of its children return true.
SearchExpressionSearchExpression
表示限制中的替代元素。Represents the substituted element within a restriction. XML 实例文档中不使用此元素。This element is not used in an XML instance document.

父元素Parent elements

元素Element 说明Description
FindFolderFindFolder
定义用于标识邮箱中的文件夹的请求。Defines a request to identify folders in a mailbox.
FindItemFindItem
定义在邮箱中查找项目的请求。Defines a request to find items in a mailbox.
SearchParametersSearchParameters
表示用于定义搜索文件夹的参数。Represents the parameters that define a search folder.

说明Remarks

描述此元素的架构位于正在运行 Microsoft Exchange Server 2007 的计算机(已安装客户端访问服务器角色)的 EWS 虚拟目录中。The schema that describes this element is located in the EWS virtual directory of the computer that is running Microsoft Exchange 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