編輯

共用方式為


And

The And element 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 the search expressions contained within the And element are true.

<And>
   <SearchExpression/>
   <SearchExpression/>
</And>

AndType

Attributes and elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child elements

Element Description
SearchExpression
Represents the base class for expressions within a restriction. There must be two or more search expressions in an And operation.

One of the following elements must be substituted for the SearchExpression element:

Parent elements

Element Description
Restriction
Represents the restriction or query that is used to filter items or folders in FindItem/FindFolder and search folder operations.
Not
Represents a search expression that negates the Boolean value of the search expression that it contains.
And
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 element are true.
Or
Represents a search expression that performs a logical OR operation on the search expression that it contains. Or will return true if any of its children return true. Or must have two or more children.

Remarks

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

Name Value
Namespace
http://schemas.microsoft.com/exchange/services/2006/types
Schema Name
Types schema
Validation File
Types.xsd
Can be Empty
False

See also