ArcGIS Pro 3.4 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.
Version

Remove(IEnumerable<Int64>) Method
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
)

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