Return Value
The number of rows in this table.
Exception | Description |
---|---|
ArcGIS.Core.Data.Exceptions.GeodatabaseException | A geodatabase-related exception has occurred. |
//Note: call within QueuedTask.Run() var table = featureLayer.GetTable(); var count = table.GetCount();
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