SPSiteDataQuery.Query Property
Gets or sets the inner XML that defines the query.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
Public Property Query As String
Get
Set
Dim instance As SPSiteDataQuery
Dim value As String
value = instance.Query
instance.Query = value
public string Query { get; set; }
Property Value
Type: System.String
A string that contains the inner XML that defines the query.
Remarks
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:
[xml]
<OrderBy>
<ProjectProperty Name="Title"/>
</OrderBy>