| ArcGIS Explorer Component Help |
| TableBindingAdapter..::.Count Property |
| TableBindingAdapter Class Example See Also |
Gets the number of rows contained in the TableBindingAdapter.
Namespace:
ESRI.ArcGISExplorer.DataAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
| C# |
|---|
public virtual int Count { get; } |
| Visual Basic (Declaration) |
|---|
Public Overridable ReadOnly Property Count As Integer |
Field Value
The number of Row objects currently loaded into the TableBindingAdapter.Implements
ICollection..::.Count
Examples
The code below creates a TableBindingAdapter object then fills it, empties it then re-fills it again.
At each step the Count property is used to report the number of rows currently loaded into the
TableBindingAdapter.
CopyC#
CopyVB.NET
{
//Open the mountains fill geodatabase feature class
Table mountains = Table.OpenFileGeodatabaseTable(@"C:\Data\Scotland.gdb", "mountains");
//Create a new TableBindingAdapter object for the mountains Table
TableBindingAdapter tableAdapter = new TableBindingAdapter(mountains);
//Fill the adapter with all the rows
tableAdapter.Fill();
System.Diagnostics.Debug.Print(tableAdapter.Count.ToString()); //Prints "562"
//Clear the rows from the TableBindingAdapter
tableAdapter.Clear();
System.Diagnostics.Debug.Print(tableAdapter.Count.ToString()); //Prints "0"
//Fill the adapter with only the specified rows
tableAdapter.Fill(new int[] { 1, 15, 232 });
System.Diagnostics.Debug.Print(tableAdapter.Count.ToString()); //Prints "3"
}'Open the mountains fill geodatabase feature class Dim mountainsTable As Table = Table.OpenFileGeodatabaseTable("C:\Data\Scotland.gdb", "mountains") 'Create a new TableBindingAdapter object for the mountains Table Dim tableAdapter As TableBindingAdapter = New TableBindingAdapter(mountainsTable) 'Fill the adapter with all the rows tableAdapter.Fill() System.Diagnostics.Debug.Print(tableAdapter.Count.ToString()) 'Prints "562" 'Clear the rows from the TableBindingAdapter tableAdapter.Clear() System.Diagnostics.Debug.Print(tableAdapter.Count.ToString()) 'Prints "0" 'Fill the adapter with only the specified rows tableAdapter.Fill(New Integer() {1, 15, 232}) System.Diagnostics.Debug.Print(tableAdapter.Count.ToString()) 'Prints "3"