Value Element
This documentation is archived and is not being maintained.

Value Element (Query)

Windows SharePoint Services 3

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Contains the value against which the value returned by the FieldRef element is compared.

  Type = "Text"
  IncludeTimeValue = "TRUE" | "FALSE>




Required Text. Specifies the data type for the value contained by this element.


Optional Boolean. Specifies to build DateTime queries based on time as well as date. If you do not set this attribute, the time portion of queries that involve date and time are ignored.

Minimum: 0

Maximum: 1

In the following example, the query returns cases where the BaseType field equals 1, and the Project field equals the ID of the current project property. Results are returned in ascending order, first by Title and then by ID.

        <FieldRef Name="BaseType" />
        <Value Type="Integer">1</Value>
        <FieldRef Name="Project" />
        <Value Type="Integer">
          <ProjectProperty Select="ID" />
    <FieldRef Name="Title" />
    <FieldRef Name="ID" />
© 2016 Microsoft