ArcGIS Pro 2.7 API Reference Guide
Search(QueryFilter,TimeRange,RangeExtent) Method

ArcGIS.Desktop.Mapping Namespace > StandaloneTable Class > Search Method : Search(QueryFilter,TimeRange,RangeExtent) Method
A query filter
A time filter only works if the table is time enabled.
A range filter only works if the table is range enabled.
Executes a query to the underlying data source and returns rows matching the search criteria. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
Public Overloads Function Search( _
   ByVal queryFilter As QueryFilter, _
   ByVal time As TimeRange, _
   ByVal range As RangeExtent _
) As RowCursor

Parameters

queryFilter
A query filter
time
A time filter only works if the table is time enabled.
range
A range filter only works if the table is range enabled.

Return Value

A RowCursor allows access to the matched rows.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
A geodatabase-related exception has occurred.
Remarks

If there is a definition query set on the standalone table, the Search() method will automatically work on the subset of rows in the standalone table that meet the definition criteria. You specify an additional query that will be applied after the standalone table's definition query by passing valid QueryFilter object for the QueryFilter parameter.
If the standalone table has any joins, this Search() method takes that into account.
You can use the cursor returned by Search to update rows.

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

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

StandaloneTable Class
StandaloneTable Members
Overload List