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

In This Topic
    RelayCommand Constructor(Func<Object,Task>,Boolean)
    In This Topic
    Instantiates a new RelayCommand instance.
    Syntax
    Public Function New( _
       ByVal execute As Func(Of Object,Task), _
       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.4 or higher.
    See Also