ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data.PluginDatastore Namespace / PluginTableTemplate Class / GetNativeRowCount Method

In This Topic
    GetNativeRowCount Method
    In This Topic
    Gets the count of how many rows are currently in this plug-in table or feature class.
    Syntax
    public virtual long GetNativeRowCount()
    Public Overridable Function GetNativeRowCount() As Long

    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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also