ArcObjects Library Reference (Carto)  

esriSelectionResultEnum Constants

Selection result options.

Constant Value Description
esriSelectionResultNew 0 Creates a new selection.
esriSelectionResultAdd 1 Adds to the current selection.
esriSelectionResultSubtract 2 Subtracts from the current selection.
esriSelectionResultAnd 3 Selects from the current selection.
esriSelectionResultXOR 4 Performs an 'exclusive or' with the current selection.

Product Availability

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

Remarks

These constants define combination methods for selection operations i.e. how the selection performed will combine with an existing selection. It is the programmatic equivalent of the pulldown menus found in the selection dialogs in ArcMap.

esriSelectionResultXOR performs an 'exclusive or' with the current selection. The results of a selection using this combination method are shown in the following table:

Selected before query Expression evaluates to true Selected after query
Yes No Yes
No No No
Yes Yes No
No Yes Yes