다음을 통해 공유


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

  • webUrl
    Type: System.String

    The 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.Boolean

    Whether 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.

See Also

Reference

CrossListQueryCache Class

CrossListQueryCache Members

GetSiteDataResults Overload

Microsoft.SharePoint.Publishing Namespace