ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / IDisplayTable Interface / Select Method
A query filter
A combination method.
A time filter
A range filter
A floor filter filter only works if the layer has a defined floor field.

In This Topic
    Select Method (IDisplayTable)
    In This Topic
    Selects rows based upon the specified criteria and combination method. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    queryFilter
    A query filter
    method
    A combination method.
    time
    A time filter
    range
    A range filter
    floor
    A floor filter filter only works if the layer has a defined floor field.

    Return Value

    A selection set.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks

    Features or Rows in are highlighted on the map and/or the table view as a result of this method call.
    If there is a definition query set on the MapMember, the Select() method will automatically work on the subset of rows in the MapMember that meet the definition criteria. You specify an additional query that will be applied after the MapMember's definition query by passing valid QueryFilter object for the QueryFilter parameter.
    If the MapMember has any joins, this Select() method takes that into account.

    To ensure maximum robustness, callers should explicitly dispose of the returned ArcGIS.Core.Data.Selection in either a using statement or a finally block.

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also