ArcGIS Pro 2.7 API Reference Guide
Evaluate Method (Geodatabase)

ArcGIS.Core.Data Namespace > Geodatabase Class : Evaluate Method
Represents a query involving one or more tables from the same geodatabase.
If set to true, all the entries in RowCursor will reference the most current row returned by RowCursor.Current. To ensure all the entries in RowCursor remain unique, set useRecyclingCursor to false.
Evaluates the query and return a RowCursor.
Syntax
Public Function Evaluate( _
   ByVal queryDef As QueryDef, _
   Optional ByVal useRecyclingCursor As Boolean _
) As RowCursor

Parameters

queryDef
Represents a query involving one or more tables from the same geodatabase.
useRecyclingCursor
If set to true, all the entries in RowCursor will reference the most current row returned by RowCursor.Current. To ensure all the entries in RowCursor remain unique, set useRecyclingCursor to false.

Return Value

A RowCursor that encapsulates the retrieved rows of type Row or Feature.
Exceptions
ExceptionDescription
No valid geodatabase has been opened prior to invoking this operation.
queryDef is null.
A geodatabase-related exception has occurred.
Remarks
The rows retrieved from the RowCursor may be of type Row or Feature. If there exists a feature class (i.e., spatial table) specified in the QueryDef.Tables's comma-delimited string AND the QueryDef.SubFields contains either the default value (i.e., "*") or the spatial field name (e.g., "SHAPE" of type FieldType.Geometry), then the retrieved rows are of type Feature. Otherwise, they are of type Row.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Geodatabase Class
Geodatabase Members