Share via


WebServiceAdapter2.Query method

Executes the query operation on the adapter, by invoking the specified Web method on the Web service, and inserting the returned XML under the dataFields node of the associated data source.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
Sub Query
'Usage
Dim instance As WebServiceAdapter2

instance.Query()
void Query()

Remarks

The Query method fails if the QueryAllowed property of the WebServiceAdapterObject object is false.

Note

An ADO.NET DataSet cannot be used as a query parameter for the WebServiceAdapterObject object or any other data adapter.

See also

Reference

WebServiceAdapter2 interface

WebServiceAdapter2 members

Microsoft.Office.Interop.InfoPath namespace