Share via


_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

_XDocument2.DataAdapters

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"];

See also

Reference

_XDocument3 interface

_XDocument3 members

DataAdapters overload

Microsoft.Office.Interop.InfoPath namespace