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

IMap.SelectFeature Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMap Interface > IMap.SelectFeature Method
ArcGIS Developer Help

IMap.SelectFeature Method

Selects a feature.

[Visual Basic .NET]
Public Sub SelectFeature ( _
    ByVal Layer As ILayer, _
    ByVal Feature As IFeature _
public void SelectFeature (
    ILayer Layer,
    IFeature Feature
HRESULT SelectFeature(
  ILayer* Layer,
  IFeature* Feature
Layer [in]

Layer is a parameter of type ILayer* Feature [in]
Feature is a parameter of type IFeature*

Product Availability

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


Adds the feature to the feature layer's selection set. For example, the Editor's 'Create New Feature' task uses this method to select the new feature it has just created. This method also calls IActiveViewEvents::SelectionChanged to notify all listeners of the event.

See Also

IMap Interface