ArcGIS Pro 2.6 API Reference Guide
RelayCommand Constructor(Object,MethodInfo,PropertyInfo,Boolean)

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.
Instantiates a new RelayCommand instance.
Syntax
Public Function New( _
   ByVal targetObject As Object, _
   ByVal execute As MethodInfo, _
   ByVal canExecute As PropertyInfo, _
   Optional ByVal supportsOnUpdate As Boolean _
)

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

See Also

Reference

RelayCommand Class
RelayCommand Members
Overload List