ArcGIS Pro 3.0 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.

In This Topic
    Add(IEnumerable<Int64>) Method
    In This Topic
    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
    )
    Public Overloads Sub Add( _
       ByVal objectIDs As IEnumerable(Of Long) _
    ) 

    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, Windows 8.1

    See Also