Share via


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)

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.

  • dsp
    Type: IDspAdapter

    The IDSPAdapter object that represents the specified data query.

  • QueryRequest
    Type: QueryRequest

    The QueryRequest object that represents the specified data query.

  • 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