ArcGIS Pro 2.6 API Reference Guide
SetCurrentToolAsync Method

ArcGIS.Desktop.Framework Namespace > FrameworkApplication Class : SetCurrentToolAsync Method
The tool's DAML identifier.
Activates the specified tool.
Syntax
public static Task SetCurrentToolAsync( 
   string id
)
Public Shared Function SetCurrentToolAsync( _
   ByVal id As String _
) As Task

Parameters

id
The tool's DAML identifier.

Return Value

Returns an awaitable task which, when complete, indicates the tool is fully initialized and ready for use.
Remarks
Setting the application's current tool is asynchronous as tools often need to initialize themselves on the primary worker thread before they are ready for use.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

FrameworkApplication Class
FrameworkApplication Members