Gets the count of how many rows are currently in this
Table. This method must be called on the MCT. Use QueuedTask.Run.
Public Overloads Function GetCount() As Long
Return Value
The number of rows in this table.
Gets the count of how many rows are currently in a Table
//Note: call within QueuedTask.Run()
var table = featureLayer.GetTable();
var count = table.GetCount();
Gets the feature count of a layer
var lyr = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault();
QueuedTask.Run(() =>
{
FeatureClass featureClass = lyr.GetFeatureClass();
long nCount = featureClass.GetCount();
});
Target Platforms: Windows 11, Windows 10, Windows 8.1
ArcGIS Pro version: 2.1 or higher.