ArcGIS Pro 3.4 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.
Version

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

ArcGIS Pro version: 3 or higher.
See Also