FieldURIOrConstant

The FieldURIOrConstant element represents either a property or a constant value to be used when comparing with another property.

<FieldURIOrConstant>
   <Constant/>
</FieldURIOrConstant>
<FieldURIOrConstant>
    <IndexedFieldURI/> 
</FieldURIOrConstant>
<FieldURIOrConstant>
   <FieldURI/>
</FieldURIOrConstant>
<FieldURIOrConstant>
   <ExtendedFieldURI/> 
</FieldURIOrConstant>

FieldURIOrConstantType

Attributes and elements

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

Attributes

None.

Child elements

Element Description
Constant
Identifies a constant value in a restriction.
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies individual members of a dictionary.
ExtendedFieldURI
Identifies MAPI properties.

Parent elements

Element Description
IsEqualTo
Represents a search expression that compares a property with either a constant value or another property and evaluates to true if they are equal.
IsGreaterThan
Represents a search expression that compares a property with either a constant value or another property and returns true if the first property is greater.
IsGreaterThanOrEqualTo
Represents 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 second value or property.
IsLessThan
Represents 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 second value or property.
IsLessThanOrEqualTo
Represents 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 second value or property.
IsNotEqualTo
Represents 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.

Remarks

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.

Example

The following XML example shows the FieldURIOrConstant element used with both a constant and field URI.

<Restriction>
  <Or xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
    <IsEqualTo>
      <FieldURI FieldURI="item:DateTimeCreated"/>
      <FieldURIOrConstant>
        <FieldURI FieldURI="item:DateTimeReceived"/>
      </FieldURIOrConstant>
    </IsEqualTo>
    <IsEqualTo>
      <FieldURI FieldURI="item:Subject"/>
      <FieldURIOrConstant>
        <Constant Value="Here is a test message"/>
      </FieldURIOrConstant>
    </IsEqualTo>
  </Or>
</Restriction>

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