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
Public MustOverride ReadOnly Property Count As Integer
    Get
'Usage
Dim instance As DataConnectionCollection
Dim value As Integer

value = instance.Count
public abstract int Count { get; }

Property value

Type: System.Int32
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 InfoPath Filler or in a Web browser.

Examples

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