Share via


CrossListQueryCache.GetSiteData Method (SPWeb)

Gets the cache data from the SPWeb object.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Function GetSiteData ( _
    web As SPWeb _
) As DataTable
'Usage
Dim instance As CrossListQueryCache
Dim web As SPWeb
Dim returnValue As DataTable

returnValue = instance.GetSiteData(web)
public DataTable GetSiteData(
    SPWeb web
)

Parameters

Return Value

Type: System.Data.DataTable
Cache data the SPWeb object retrieves from the web parameter.

Remarks

When you call this method, the webUrlof the CrossListQueryInfo property is ignored.

Examples

                // Execute Query
                CbqQueryVersionInfo userCbqQuery = queryCache.UserQueryVersionInfo;
                CrossListQueryCache xlqCache = new CrossListQueryCache(userCbqQuery.VersionCrossListQueryInfo);
                DataTable data =  xlqCache.GetSiteData(SPContext.Current.Site);

See Also

Reference

CrossListQueryCache Class

CrossListQueryCache Members

GetSiteData Overload

Microsoft.SharePoint.Publishing Namespace

CrossListQueryCache