Edit

Share via


_XDocument2.DataAdapters Property

Definition

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

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

Property Value

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

Remarks

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.

Applies to