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
)
參數
dataQueryXml
Type: System.Xml.XmlDocument資料查詢輸入的 XML 資料。
nsmgr
Type: System.Xml.XmlNamespaceManagerXmlNamespaceManager物件,用來解析查詢與資料查詢 XML。
web
Type: Microsoft.SharePoint.SPWebSPWeb物件,表示該網站。
justProcessQuery
Type: System.Boolean布林值,以控制是否這個方法會處理查詢其有效性,但不會建構的IDSPAdapter和QueryRequest物件。
dsp
Type: IDspAdapterIDSPAdapter物件,表示指定的資料查詢。
QueryRequest
Type: QueryRequestQueryRequest物件,表示指定的資料查詢。
assemblyName
Type: System.String字串,表示保存IDSPAdapter物件的組件名稱。
傳回值
Type: System.Boolean