StsAdapter.Query Method
NOTE: This API is now obsolete.
Executes a query expressed as a predefined request object.
Namespace: Microsoft.SharePoint.Dsp.Sts
Assembly: Microsoft.SharePoint.Dsp.Sts (in Microsoft.SharePoint.Dsp.Sts.dll)
Syntax
'Declaration
<ObsoleteAttribute("Use the Lists web service instead.")> _
<SoapHeaderAttribute("Request", Direction := SoapHeaderDirection.In)> _
<WebMethodAttribute(MessageName := "queryRequest")> _
<SoapHeaderAttribute("Authentication", Direction := SoapHeaderDirection.In)> _
<SoapHeaderAttribute("Unknown", Direction := SoapHeaderDirection.In)> _
<SoapHeaderAttribute("Versions", Direction := SoapHeaderDirection.InOut)> _
<SoapHeaderAttribute("DataRoot", Direction := SoapHeaderDirection.In)> _
Public Function Query ( _
Request As QueryRequest _
) As QueryResponse
'Usage
Dim instance As StsAdapter
Dim Request As QueryRequest
Dim returnValue As QueryResponse
returnValue = instance.Query(Request)
[ObsoleteAttribute("Use the Lists web service instead.")]
[SoapHeaderAttribute("Request", Direction = SoapHeaderDirection.In)]
[WebMethodAttribute(MessageName = "queryRequest")]
[SoapHeaderAttribute("Authentication", Direction = SoapHeaderDirection.In)]
[SoapHeaderAttribute("Unknown", Direction = SoapHeaderDirection.In)]
[SoapHeaderAttribute("Versions", Direction = SoapHeaderDirection.InOut)]
[SoapHeaderAttribute("DataRoot", Direction = SoapHeaderDirection.In)]
public QueryResponse Query(
QueryRequest Request
)
Parameters
Request
Type: Microsoft.SharePoint.Dsp.QueryRequestA QueryRequest object that expresses a query in DSPQ (data retrieval service query) or Pass-Through format.
Return Value
Type: Microsoft.SharePoint.Dsp.QueryResponse
A QueryResponse object that contains the data in response to the request query.
Implements
IDspAdapter.Query(QueryRequest)
Remarks
Before calling the Query method of the StsAdapter class, the caller needs to set the DataRoot, Request, Versions, and optionally the LocalClient properties of the IDspAdapter interface.