共用方式為


DataViewWebPart.DspGatherDSPandQuery method

傳回輸入資料為基礎的IDSPAdapter和QueryRequest物件查詢 XML。

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
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
'用途
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
)

參數

  • justProcessQuery
    Type: System.Boolean

    布林值,以控制是否這個方法會處理查詢其有效性,但不會建構的IDSPAdapter和QueryRequest物件。

  • dsp
    Type: IDspAdapter

    IDSPAdapter物件,表示指定的資料查詢。

  • QueryRequest
    Type: QueryRequest

    QueryRequest物件,表示指定的資料查詢。

  • assemblyName
    Type: System.String

    字串,表示保存IDSPAdapter物件的組件名稱。

傳回值

Type: System.Boolean

請參閱

參照

DataViewWebPart class

DataViewWebPart members

Microsoft.SharePoint.WebPartPages namespace