This documentation is archived and is not being maintained.

FieldURIOrConstant

Topic Last Modified: 2007-02-26

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


<FieldURIOrConstant>
   <Constant/>
</FieldURIOrConstant>

<FieldURIOrConstant>
   <FieldURI/>
</FieldURIOrConstant>

<FieldURIOrConstant>
   <IndexedFieldURI/>
</FieldURIOrConstant>

<FieldURIOrConstant>
   <ExtendedFieldURI/>
</FieldURIOrConstant>

FieldURIOrConstantType

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.

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.

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

[xml]
<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>

Namespace

http://schemas.microsoft.com/exchange/services/2006/types

Schema Name

Types schema

Validation File

Types.xsd

Can be Empty

False

Show: