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

OnCanExecuteCommand Method (CustomizationFilter)
Gives a customizaiton filter the ability to disable commands.
Syntax
protected internal virtual bool OnCanExecuteCommand( 
   string cmdID,
   string moduleID
)

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

ArcGIS Pro version: 3.0 or higher.
See Also