편집

다음을 통해 공유


_XDocument3.DataAdapters Property

Definition

Gets a reference to the DataAdaptersCollection collection that is associated with a form.

public:
 property Microsoft::Office::Interop::InfoPath::DataAdaptersCollection ^ DataAdapters { Microsoft::Office::Interop::InfoPath::DataAdaptersCollection ^ get(); };
public Microsoft.Office.Interop.InfoPath.DataAdaptersCollection DataAdapters { get; }
member this.DataAdapters : Microsoft.Office.Interop.InfoPath.DataAdaptersCollection
Public ReadOnly Property DataAdapters As DataAdaptersCollection

Property Value

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.<span class="label">DataAdapters</span>["Main query"];

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.<span class="label">DataAdapters</span>["Main query"];

Applies to