CrossListQueryCache.GetSiteDataResults Method (SPSite, String, Boolean)
Returns the results of the current query on the specified site.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Function GetSiteDataResults ( _
site As SPSite, _
webUrl As String, _
useSpQueryOnList As Boolean _
) As SiteDataResults
'Usage
Dim instance As CrossListQueryCache
Dim site As SPSite
Dim webUrl As String
Dim useSpQueryOnList As Boolean
Dim returnValue As SiteDataResults
returnValue = instance.GetSiteDataResults(site, _
webUrl, useSpQueryOnList)
public SiteDataResults GetSiteDataResults(
SPSite site,
string webUrl,
bool useSpQueryOnList
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteThe site to run the query in
webUrl
Type: System.StringThe server-relative URL of the web to query against or the server-relative URL of the web that the list being queried against resides in.
useSpQueryOnList
Type: System.BooleanWhether to run the query against a list.
Return Value
Type: Microsoft.SharePoint.Publishing.SiteDataResults
A SiteDataResults object that contains the results of running the query.
Remarks
The query will be run against an SharePointSPList object if useSpQueryOnList parameter is set to true. Otherwise, the query will be run against a site or web.