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)

Syntax

'Declaration
'Usage

Property Value

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

Remarks

This member can be accessed without restrictions.

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

Example

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());
MessageBox.Show("Count: " & Me.DataConnections.Count.ToString())

See Also

Reference

DataConnectionCollection Class
DataConnectionCollection Members
Microsoft.Office.InfoPath Namespace