_XDocument3.DataAdapters property
Gets a reference to the DataAdaptersCollection collection that is associated with a form.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)
Syntax
'Declaration
ReadOnly Property DataAdapters As DataAdaptersCollection
Get
'Usage
Dim instance As _XDocument3
Dim value As DataAdaptersCollection
value = instance.DataAdapters
DataAdaptersCollection DataAdapters { get; }
Property value
Type: Microsoft.Office.Interop.InfoPath.DataAdaptersCollection
A reference to the DataAdaptersCollection collection that is associated with a form.
Implements
Examples
In the following example, the DataAdapters property of the XDocument object is used to set a reference to a data adapter called "Main query":
object objDataAdapter;
objDataAdapter = thisXDocument.DataAdapters["Main query"];