Share via


Constant

Topic Last Modified: 2007-02-16

The Constant element identifies a constant value in a restriction.

Syntax

<Constant Value="" />

Type

ConstantValueType

Attributes and Elements

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

Attributes

Attribute Description

Value

Specifies the value to compare in the restriction.

Child Elements

None.

Parent Elements

Element Description

Contains

Represents a search expression that determines whether a given property contains the supplied constant string value.

FieldURIOrConstant

Represents either a property or a constant value to be used when comparing with another property.

Remarks

The string value in the Value attribute must be coercible into the type you are trying to compare against. For example, if you are comparing a date/time property against a constant value, the string value must represent a date/time.

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.xsd

Can be Empty

False

See Also

Other Resources

Exchange Web Services XML Elements