ArcGIS Pro 2.6 API Reference Guide
RelayCommand Constructor(Action,Boolean)

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.
Instantiates a new RelayCommand instance.
Syntax
public RelayCommand( 
   Action execute,
   bool supportsOnUpdate
)
Public Function New( _
   ByVal execute As Action, _
   Optional ByVal supportsOnUpdate As Boolean _
)

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 10, Windows 8.1, Windows 7

See Also

Reference

RelayCommand Class
RelayCommand Members
Overload List