Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- web
Type: Microsoft.SharePoint.SPWeb
Target SPWeb object to get cache data from.
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);