ArcGIS Pro 2.6 API Reference Guide
GetNativeRowCount Method

ArcGIS.Core.Data.PluginDatastore Namespace > PluginTableTemplate Class : GetNativeRowCount Method
Gets the count of how many rows are currently in this plug-in table or feature class.
Syntax
public virtual int GetNativeRowCount()
Public Overridable Function GetNativeRowCount() As Integer

Return Value

The number of rows in this plug-in table or feature class.
Exceptions
ExceptionDescription
This plug-in implementation does not support a native row count.
Remarks

The reason why concrete implementations of this abstraction should overwrite this method and IsNativeRowCountSupported (if the underlying data source supports native row count) is strictly for performance reasons. If IsNativeRowCountSupported returns false and a row count is needed for the plug-in table, the framework will call the Search method on the entire plug-in table and then manually iterate through the cursor to determine the number of rows.

The framework will not call this method if IsNativeRowCountSupported return false.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

PluginTableTemplate Class
PluginTableTemplate Members