Edit

Share via


XmlForm.DataConnections Property

Definition

Gets a DataConnectionCollection object associated with the form.

public:
 abstract property Microsoft::Office::InfoPath::DataConnectionCollection ^ DataConnections { Microsoft::Office::InfoPath::DataConnectionCollection ^ get(); };
public abstract Microsoft.Office.InfoPath.DataConnectionCollection DataConnections { get; }
member this.DataConnections : Microsoft.Office.InfoPath.DataConnectionCollection
Public MustOverride ReadOnly Property DataConnections As DataConnectionCollection

Property Value

A DataConnectionCollection that contains any DataConnection objects associated with the form.

Examples

In the following code example, the DataConnections property of the XmlForm class is used to set a reference to a data connection called "Main query".

DataConnection mainQuery = this.DataConnections["Main query"]; Dim mainQuery As DataConnection = Me.DataConnections("Main query")

Remarks

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.

This type or member can be accessed from code running in forms opened in Microsoft InfoPath Filler or in a Web browser.

Applies to