The Query property of the SPQuery class gets or sets the inner XML used in the query.
A string containing a fragment in Collaborative Application Markup Language (CAML) that defines the query.
The Query property contains a string that corresponds to the inner XML of the Query element in CAML.
The following code example uses the Query property to define a query that returns items whose Field2 values are greater than 1000.
Platforms: Microsoft Windows Server 2003
Security: Code Access Security