ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Framework Namespace / RelayCommand Class / RelayCommand Constructor / RelayCommand Constructor(Func<Task>,Func<Boolean>,Boolean,Boolean)
The method to call.
The method to call to update the state.
Is the command automatically called for a state update. Default is true.
Is the command automatically disabled when the main worker thread is busy. Default is true.

RelayCommand Constructor(Func<Task>,Func<Boolean>,Boolean,Boolean)
Instantiates a new RelayCommand instance.
Syntax

Parameters

execute
The method to call.
canExecute
The method to call to update the state.
supportsOnUpdate
Is the command automatically called for a state update. Default is true.
disableWhenBusy
Is the command automatically disabled when the main worker thread is busy. Default is true.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also