SharepointListAdapter.Query Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads data from the associated data adapter.
public:
void Query();
public void Query ();
abstract member Query : unit -> unit
Public Sub Query ()
Examples
In the following example, the Query method of an existing Data Connection to a SharePoint list, "SharePoint list", is invoked. A message box is displayed if the Query method fails:
SharepointListAdapter SPList = ((SharepointListAdapter)thisXDocument.DataAdapters[“SharePoint list”]);
try
{
SPList.<span class="label">Query</span>();
}
catch (Exception ex)
{
thisXDocument.UI.Alert("Failed to query.\n\n" + ex.Message);
}
Remarks
The Query method fails if the QueryAllowed property is false.