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


ISelectFeaturesOperation Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (ArcMapUI)  

ISelectFeaturesOperation Interface

Provides access to members that control the Select Features operation.

Product Availability

Available with ArcGIS Desktop.

Members

Description
Write-only property ActiveView The active view (for refresh).
Write-only property Layer The layer from which to select features.
Write-only property SelectionSet The selection set.

CoClasses that implement ISelectFeaturesOperation

CoClasses and Classes Description
SelectFeaturesOperation Select Features Operation.

Remarks

Use this interface to perform selection operation. The changes in the selection will then be undoable or redoable.

To use, simply create a SelectFeaturesOperation object and set the values of the properties as follow:

The ActiveView property will contain a reference to the active view to refresh on undo/redo, typically the current active view.
Layer is the layer on which to perform the selection
Store into SelectionSet the selection set resulting from performing the operation.

Then pass the SelectFeaturesOperation object to the Do method of an OperationStack object, the operation will be performed.

Use IActiveView::PartialRefresh to refresh the selection on the map.

The selection operation you performed can now be undone or redone at will.