Export (0) Print
Expand All

DataConnectionCollection.Count property

Gets the count of the number of DataConnection objects in the collection.

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

public abstract int Count { get; }

Property value

Type: System.Int32
The count of the number of DataConnection objects in the collection.

This member can be accessed without restrictions.

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

In the following example, the count of the number of DataConnection objects is displayed in a message box.

MessageBox.Show("Count: " + this.DataConnections.Count.ToString());
Show:
© 2014 Microsoft