ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Framework Namespace / RelayCommand Class / RelayCommand Constructor / RelayCommand Constructor(Action,Boolean)
The method to call.
Is the command automatically called for a state update. Default is true.

In This Topic
    RelayCommand Constructor(Action,Boolean)
    In This Topic
    Instantiates a new RelayCommand instance.
    Syntax
    public RelayCommand( 
       Action execute,
       bool supportsOnUpdate
    )
    Public Function New( _
       ByVal execute As Action, _
       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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also