DataSourceCollection.Count Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a count of the number of DataSource objects contained in the DataSourceCollection.
public:
abstract property int Count { int get(); };
public abstract int Count { get; }
member this.Count : int
Public MustOverride ReadOnly Property Count As Integer
Property Value
The number of DataSource objects in the DataSourceCollection.
Examples
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.
MessageBox.Show(
"DataSource count: " + this.DataSource.Count.ToString());
MessageBox.Show(
"DataSource count: " & Me.DataSource.Count.ToString())
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.