CrossListQueryCache.GetSiteData Method (SPWeb, SPSiteDataQuery)
Gets the data by using the specified SPSiteDataQuery object.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Function GetSiteData ( _
web As SPWeb, _
query As SPSiteDataQuery _
) As DataTable
'Usage
Dim instance As CrossListQueryCache
Dim web As SPWeb
Dim query As SPSiteDataQuery
Dim returnValue As DataTable
returnValue = instance.GetSiteData(web, _
query)
public DataTable GetSiteData(
SPWeb web,
SPSiteDataQuery query
)
Parameters
web
Type: Microsoft.SharePoint.SPWebThe target SPWeb object to get cache data from.
query
Type: Microsoft.SharePoint.SPSiteDataQueryThe SPSiteDataQuery object that is used to get data.
Return Value
Type: System.Data.DataTable
The data that is retrieved by using the specified SPSiteDataQuery object.
Remarks
The Collaborative Application Markup Language (CAML) of the CrossListQueryInfo property is ignored when this method is called.