ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data Namespace / Selection Class / Remove Method / Remove(IEnumerable<Int64>) Method
The object IDs of rows to be removed from the selection.

In This Topic
    Remove(IEnumerable<Int64>) Method
    In This Topic
    Removes a list of rows from the selection based on object IDs. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void Remove( 
       IEnumerable<long> objectIDs
    )
    Public Overloads Sub Remove( _
       ByVal objectIDs As IEnumerable(Of Long) _
    ) 

    Parameters

    objectIDs
    The object IDs of rows to be removed from the selection.
    Exceptions
    ExceptionDescription
    objectIDs is null.
    Any object ID in objectIDs is a negative number.
    SelectionType is not SelectionType.ObjectID.
    A geodatabase-related exception has occurred.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also