DataViewWebPart.DspGatherDSPandQuery Method
Returns the IDSPAdapter and QueryRequest objects based on the input data query XML.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Function DspGatherDSPandQuery ( _
dataQueryXml As XmlDocument, _
nsmgr As XmlNamespaceManager, _
web As SPWeb, _
justProcessQuery As Boolean, _
<OutAttribute> ByRef dsp As IDspAdapter, _
<OutAttribute> ByRef QueryRequest As QueryRequest, _
<OutAttribute> ByRef assemblyName As String _
) As Boolean
'Usage
Dim dataQueryXml As XmlDocument
Dim nsmgr As XmlNamespaceManager
Dim web As SPWeb
Dim justProcessQuery As Boolean
Dim dsp As IDspAdapter
Dim QueryRequest As QueryRequest
Dim assemblyName As String
Dim returnValue As Boolean
returnValue = DataViewWebPart.DspGatherDSPandQuery(dataQueryXml, _
nsmgr, web, justProcessQuery, dsp, _
QueryRequest, assemblyName)
public static bool DspGatherDSPandQuery(
XmlDocument dataQueryXml,
XmlNamespaceManager nsmgr,
SPWeb web,
bool justProcessQuery,
out IDspAdapter dsp,
out QueryRequest QueryRequest,
out string assemblyName
)
Parameters
dataQueryXml
Type: System.Xml.XmlDocumentThe input XML data for the data query.
nsmgr
Type: System.Xml.XmlNamespaceManagerAn XmlNamespaceManager object that is used with the data query XML to resolve the query.
web
Type: Microsoft.SharePoint.SPWebAn SPWeb object that represents the site.
justProcessQuery
Type: System.BooleanA Boolean value that controls whether this method processes the query for its validity but doesn't construct the IDSPAdapter and QueryRequest objects.
dsp
Type: Microsoft.SharePoint.Dsp.IDspAdapterThe IDSPAdapter object that represents the specified data query.
QueryRequest
Type: Microsoft.SharePoint.Dsp.QueryRequestThe QueryRequest object that represents the specified data query.
assemblyName
Type: System.StringA string that represents the assembly name holding the IDSPAdapter object.
Return Value
Type: System.Boolean