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

  • justProcessQuery
    Type: System.Boolean

    A Boolean value that controls whether this method processes the query for its validity but doesn't construct the IDSPAdapter and QueryRequest objects.

  • assemblyName
    Type: System.String

    A string that represents the assembly name holding the IDSPAdapter object.

Return Value

Type: System.Boolean

See Also

Reference

DataViewWebPart Class

DataViewWebPart Members

Microsoft.SharePoint.WebPartPages Namespace