ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Framework.Contracts Namespace / ConfigurationManager Class / OnCanExecuteCommand Method
The DAML ID of the command about to execute.
The command's parent module DAML ID.

In This Topic
    OnCanExecuteCommand Method (ConfigurationManager)
    In This Topic
    Gives a configuration the ability to disable commands.
    Syntax
    protected internal virtual bool OnCanExecuteCommand( 
       string cmdID,
       string moduleID
    )
    Protected Friend Overridable Function OnCanExecuteCommand( _
       ByVal cmdID As String, _
       ByVal moduleID As String _
    ) As Boolean

    Parameters

    cmdID
    The DAML ID of the command about to execute.
    moduleID
    The command's parent module DAML ID.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also