This document is archived and information here might be outdated.  Recommended version.


IGeoFeatureLayer.SearchDisplayFeatures Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IG > IGeoFeatureLayer Interface > IGeoFeatureLayer.SearchDisplayFeatures Method
ArcGIS Developer Help

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
);
[C++]
Parameters
queryFilter [in]

queryFilter is a parameter of type IQueryFilter* recycling [in]
recycling is a parameter of type bool

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