ArcGIS Pro 2.7 API Reference Guide
ActivateSelectAsync Method

ArcGIS.Desktop.Mapping Namespace > MapTool Class : ActivateSelectAsync Method
If True the tool will start selecting features.
Sets the tool into or out of selection mode. Only supported when SketchType is set to Point, Line, Polygon, or Multipoint.
Syntax
protected Task<bool> ActivateSelectAsync( 
   bool activate
)
Protected Function ActivateSelectAsync( _
   ByVal activate As Boolean _
) As Task(Of Boolean)

Parameters

activate
If True the tool will start selecting features.

Return Value

A Task representing the mode change operation. Returns false if the SketchType is unsupported.
Remarks
To save the sketch state while in selection mode, set UseSelection to True before entering selection mode.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MapTool Class
MapTool Members