ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Framework Namespace / RelayCommand Class / RelayCommand Constructor / RelayCommand Constructor(Object,MethodInfo,PropertyInfo,Boolean)
The object to call.
The method on the target object to call.
The method to call to update the state.
Is the command automatically called for a state update. Default is true.

RelayCommand Constructor(Object,MethodInfo,PropertyInfo,Boolean)
Instantiates a new RelayCommand instance.
Syntax

Parameters

targetObject
The object to call.
execute
The method on the target object to call.
canExecute
The method to call to update the state.
supportsOnUpdate
Is the command automatically called for a state update. Default is true.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also