ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Framework Namespace / RelayCommand Class / RelayCommand Constructor / RelayCommand Constructor(Action,Boolean)
The method to call.
Is the command automatically called for a state update. Default is true.
Version

RelayCommand Constructor(Action,Boolean)
Instantiates a new RelayCommand instance.
Syntax
public RelayCommand( 
   Action execute,
   bool supportsOnUpdate
)

Parameters

execute
The method to call.
supportsOnUpdate
Is the command automatically called for a state update. Default is true.
Remarks
If supportsOnUpdate is true, the default, the command will automatically disable whenever the main worker thread is busy and when the application begins shutting down.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also