ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data Namespace / Selection Class / Add Method / Add(IEnumerable<Int64>) Method
The ObjectIDs of rows to be added to the selection.
Version

Add(IEnumerable<Int64>) Method
Adds a list of rows by object IDs to the selection. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void Add( 
   IEnumerable<long> objectIDs
)

Parameters

objectIDs
The ObjectIDs of rows to be added to the selection.
Exceptions
ExceptionDescription
If 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