This documentation is archived and is not being maintained.

SPSiteDataQuery.Query Property

Windows SharePoint Services 3

Gets or sets the inner XML that defines the query.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public string Query { get; set; }

Property Value

Type: System.String
A string that contains the inner XML that defines the query.

Both the Where and OrderBy tags are supported as top-level elements in the XML. In addition to FieldRef, both ListProperty and ProjectProperty may be used as children of OrderBy within the string that is assigned to the Query property. Example:


  <ProjectProperty Name="Title"/>