IMap.SelectFeature Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IMap.SelectFeature Method

Selects a feature.

[Visual Basic .NET]
Public Sub SelectFeature ( _
    ByVal Layer As ILayer, _
    ByVal Feature As IFeature _
)
[C#]
public void SelectFeature (
    ILayer Layer,
    IFeature Feature
);
[C++]
HRESULT SelectFeature(
  ILayer* Layer,
  IFeature* Feature
);
[C++]

Parameters 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.

Remarks

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