CbqQueryCache.GetSiteData Method

Gets the cache data 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 CbqQueryCache
Dim site As SPSite
Dim returnValue As DataTable

returnValue = instance.GetSiteData(site)
public DataTable GetSiteData(
    SPSite site
)

Parameters

Return Value

Type: System.Data.DataTable
Cache data that is based on the CrossListQueryInfo specification.

Remarks

The code in this example is part of a larger code example available in the CbqQueryCache class topic. See the class topic to view the code in context.

Examples

// Execute Query    CbqQueryVersionInfo userCbqQuery = queryCache.UserQueryVersionInfo;    CrossListQueryCache xlqCache = new CrossListQueryCache(userCbqQuery.VersionCrossListQueryInfo);    DataTable data =  xlqCache.GetSiteData(SPContext.Current.Site);
' Execute QueryDim userCbqQuery As CbqQueryVersionInfo = queryCache.UserQueryVersionInfoDim xlqCache As New CrossListQueryCache(userCbqQuery.VersionCrossListQueryInfo)Dim data As DataTable = xlqCache.GetSiteData(SPContext.Current.Site)

See Also

Reference

CbqQueryCache Class

CbqQueryCache Members

Microsoft.SharePoint.Publishing Namespace

CbqQueryCache