Gets the count of the number of rows in the RowCollection.

Namespace:  ESRI.ArcGISExplorer.Data

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public int Count { get; }
Visual Basic (Declaration)
Public ReadOnly Property Count As Integer

Field Value

The number of rows in the RowCollection

Examples

The code illustrates how to use the Count property to return the number of rows in a RowCollection
CopyC#
{
  //Open file geodatabase feature class
  Table protectedAreasTable = Table.OpenFileGeodatabaseTable(@"C:\Data\Forestry.gdb", "Protected_Areas");

  //Find the protected areas of a specific type
  RowCollection rows = protectedAreasTable.Search(new Filter("TYPE='Cup and Rings'"));

  //Print number of areas designated for having 'cup and ring' markings
  System.Diagnostics.Debug.Print(rows.Count.ToString());   
}
CopyVB.NET
'Open file geodatabase feature class
Dim protectedAreasTable As Table = Table.OpenFileGeodatabaseTable("C:\Data\Forestry.gdb", "Protected_Areas")

'Find the protected areas of a specific type
Dim rows As RowCollection = protectedAreasTable.Search(New Filter("TYPE='Cup and Rings'"))

'Print number of areas designated for having 'cup and ring' markings
System.Diagnostics.Debug.Print(rows.Count.ToString())

See Also