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.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.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.
Important
This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.