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.

In This Topic
    RelayCommand Constructor(Object,MethodInfo,PropertyInfo,Boolean)
    In This Topic
    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 11, Windows 10, Windows 8.1

    See Also