SharepointListAdapter2.QueryThisFormOnly Property
Gets whether the query operation will apply only to the current form.
Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
Syntax
'Declaration
ReadOnly Property QueryThisFormOnly As Boolean
Get
'Usage
Dim instance As SharepointListAdapter2
Dim value As Boolean
value = instance.QueryThisFormOnly
bool QueryThisFormOnly { get; }
Property Value
Type: System.Boolean
true if the query applies only to the current form; otherwise false.
Remarks
When a form is part of a SharePoint workflow, the query operation will apply only to the current form. The value of this property corresponds to the value of the queryThisFormOnly attribute of the xsf:extensions/xsf:extension/xsf2:solutionDefinition/xsf2:solutionDefinition/xsf2:dataConnections/xsf2:sharePointListAdapterExt/ element in the form definition file (.xsf) of the form template.
Because the QueryThisFormOnly property is newin Microsoft InfoPath 2010, you must declare and cast to the SharepointListAdapter2 type to access it. For more information, see How to: Use Microsoft.Office.Interop.InfoPath.SemiTrust Members That Are Not Compatible with InfoPath 2003.
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.
See Also
Reference
SharepointListAdapter2 Interface