ArcObjects Library Reference (Carto)  

IGeoFeatureLayer.SearchDisplayFeatures Method

Creates a cursor from the display feature class based upon the search criteria.

[Visual Basic .NET]
Public Function SearchDisplayFeatures ( _
    ByVal queryFilter As IQueryFilter, _
    ByVal recycling As Boolean _
) As IFeatureCursor
[C#]
public IFeatureCursor SearchDisplayFeatures (
    IQueryFilter queryFilter,
    bool recycling
);
[C++]
HRESULT SearchDisplayFeatures(
  IQueryFilter* queryFilter,
  VARIANT_BOOL recycling,
  IFeatureCursor** Cursor
);
[C++]

Parameters

queryFilter [in]

  queryFilter is a parameter of type IQueryFilter

recycling [in]   recycling is a parameter of type VARIANT_BOOL Cursor [out, retval]

  Cursor is a parameter of type IFeatureCursor

Product Availability

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

Remarks

SearchDisplayFeatures works like IFeatureLayer::Search with the added behavior that it will work on joined fields if you qualify field names. For example, if you want to search a field called "Pop1990" from a joined table called "Demog", you should used "Demog.Pop1990" for the field name in the query filter used in the search method.

The IDisplayTable::SearchDisplayTable method is a similar search method which will work on feature layers as well as other types of layers and standalone tables. If you want your code to be generic enough to work on different types of layers, you should use IDisplayTable::SearchDisplayTable.

See Also

IGeoFeatureLayer Interface