Поделиться через


Query Schema

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.

The Query schema of Introduction to Collaborative Application Markup Language (CAML) is used in various ways within the context of Windows SharePoint Services to define queries against list data. You can assign CAML query strings, for example, to the Query property of several classes in the object model in order to return data, or to method parameters of the Lists Web Service to work remotely with data. CAML queries are also used in the context of CAML views to return specific data.

Query Elements

Query

    Where

        Logical Joins

        And

            [Logical Joins]

            [Comparison Operators]

        Or

            [Logical Joins]

            [Comparison Operators]

        Comparison Operators

        BeginsWith

            FieldRef

            Value

            XML

        Contains

            FieldRef

            Value

            XML

        Eq

            FieldRef

            Value

            XML

        Geq

            FieldRef

            Value

            XML

        Gt

            FieldRef

            Value

            XML

        Leq

            FieldRef

            Value

            XML

        Lt

            FieldRef

            Value

            XML

        Neq

              FieldRef

              Value

              XML

        DateRangesOverlap

            FieldRef

            Value

        IsNotNull

            FieldRef

        IsNull

            FieldRef

    Order/Group Operators

    OrderBy

        FieldRef

    GroupBy

        FieldRef

See Also

Concepts

View Schema

List Schema