SharepointListAdapter2.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 ()
Implements
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.
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.