ArcObjects Library Reference  (GeoDatabase)    

IQueryFilter Interface

Provides access to members that filter data based on attribute values and or relationships. Note: the IQueryFilter interface has been superseded by IQueryFilter2. Please consider using the more recent version.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

IQueryFilter filters data based on an attribute query. A string defining a where clause is required. An optional list of columns may be included to specify the column values to be retrieved. If no columns are specified, all values will be returned.

When To Use

When you need to filter data based on attribute values or the relationships between attributes.

Members

Description
Method AddField Appends a single field name to the list of sub-fields.
Read/write property OutputSpatialReference The spatial reference in which to output geometry for a given field.
Read/write property SubFields The comma delimited list of field names for the filter.
Read/write property WhereClause The where clause for the filter.

CoClasses that implement IQueryFilter

CoClasses and Classes Description
QueryFilter ESRI Query Filter object.
SpatialFilter ESRI Spatial Filter object.
TemporalQueryFilter (esriTrackingAnalyst) Controls properties for the temporal query filter.

See Also

IQueryDef Interface | ISpatialFilter Interface | esriSpatialRelEnum Constants

Example

IQueryFilter Example