CrossListQueryCache.GetSiteData Method (SPSite)
Gets the cache data that is based on the CrossListQueryInfo specification.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Function GetSiteData ( _
site As SPSite _
) As DataTable
'Usage
Dim instance As CrossListQueryCache
Dim site As SPSite
Dim returnValue As DataTable
returnValue = instance.GetSiteData(site)
public DataTable GetSiteData(
SPSite site
)
Parameters
- site
Type: Microsoft.SharePoint.SPSite
SPSite object that is used to retrieve the data.
Return Value
Type: System.Data.DataTable
Cache data that is based on the CrossListQueryInfo specification.
Examples
// Execute Query
CbqQueryVersionInfo userCbqQuery = queryCache.UserQueryVersionInfo;
CrossListQueryCache xlqCache = new CrossListQueryCache(userCbqQuery.VersionCrossListQueryInfo);
DataTable data = xlqCache.GetSiteData(SPContext.Current.Site);