CrossListQueryCache.GetSiteData Method (SPWeb)

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

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)

See Also

Reference

CrossListQueryCache Class

CrossListQueryCache Members

GetSiteData Overload

Microsoft.SharePoint.Publishing Namespace

CrossListQueryCache