ArcGIS Pro 2.8 API Reference Guide
RelayCommand Constructor(Func<Task>,Boolean)

ArcGIS.Desktop.Framework Namespace > RelayCommand Class > RelayCommand Constructor : RelayCommand Constructor(Func<Task>,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( 
   Func<Task> execute,
   bool supportsOnUpdate
)
Public Function New( _
   ByVal execute As Func(Of Task), _
   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

See Also

Reference

RelayCommand Class
RelayCommand Members
Overload List