ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data Namespace / Selection Class / Select(QueryFilter,SelectionOption) Method
A filter used when querying the selection. This argument is optional. If unset or set to null, a default query filter will be used.
Specifies the content of the Selection.

In This Topic
    Select(QueryFilter,SelectionOption) Method
    In This Topic
    Creates a selection of specific rows in this Selection that satisfy the criteria set in the queryFilter. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Function Select( _
       Optional ByVal queryFilter As QueryFilter, _
       Optional ByVal selectionOption As SelectionOption _
    ) As Selection

    Parameters

    queryFilter
    A filter used when querying the selection. This argument is optional. If unset or set to null, a default query filter will be used.
    selectionOption
    Specifies the content of the Selection.

    Return Value

    A new Selection instance that satisfies the criteria set in queryFilter and selectionOption.
    Exceptions
    ExceptionDescription
    If queryFilter is an instance of SpatialQueryFilter, either both the 'FilterGeometry' and 'SpatialRelationship' properties are set or both are not set. Otherwise, an ArgumentException will be raised.
    A geodatabase-related exception has occurred.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also