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 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.SPWebThe target SPWeb object to get cache data from.
Return Value
Type: System.Data.DataTable
The data the SPWeb object retrieves from the web parameter.
Remarks
When you call this method, the webUrl of the CrossListQueryInfo property is ignored.
Examples
// Execute QueryCbqQueryVersionInfo 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)