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


IFeatureSelection.SelectFeatures Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IFeatureSelection.SelectFeatures Method

Selects features based upon the specifed criteria and combination method.

[Visual Basic .NET]
Public Sub SelectFeatures ( _
    ByVal Filter As IQueryFilter, _
    ByVal Method As esriSelectionResultEnum, _
    ByVal justOne As Boolean _
)
[C#]
public void SelectFeatures (
    IQueryFilter Filter,
    esriSelectionResultEnum Method,
    bool justOne
);
[C++]
HRESULT SelectFeatures(
  IQueryFilter* Filter,
  esriSelectionResultEnum Method,
  VARIANT_BOOL justOne
);
[C++]

Parameters Filter [in]
Filter is a parameter of type IQueryFilter* Method [in]
Method is a parameter of type esriSelectionResultEnum justOne [in]
justOne is a parameter of type bool

Product Availability

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

See Also

IFeatureSelection Interface

.NET Snippets

Select Map Features by Attribute Query

.NET Samples

Executing geoprocessing tools in the background (Code Files: RunGPForm)

.NET Related Topics

How to create a selection set using a scatter plot graph