Public MustOverride ReadOnly Property Count As Integer
Dim instance As DataSourceCollection
Dim value As Integer
value = instance.Count
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 property of the DataSourceCollection is used to display a count of the number of DataSource objects in the collection.
"DataSource count: " & Me.DataSource.Count.ToString())