| Revit 2020 API |
| AddInCommandBinding..::..CanExecute Event |
| AddInCommandBinding Class See Also |
Occurs when the command associated with this AddInCommandBinding initiates a check to determine whether
the command can be executed on the command target.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 20.0.0.0 (20.0.0.377)
Since: 2013
Syntax
| C# |
|---|
public event EventHandler<CanExecuteEventArgs> CanExecute |
| Visual Basic |
|---|
Public Event CanExecute As EventHandler(Of CanExecuteEventArgs) |
| Visual C++ |
|---|
public: event EventHandler<CanExecuteEventArgs^>^ CanExecute { void add (EventHandler<CanExecuteEventArgs^>^ value); void remove (EventHandler<CanExecuteEventArgs^>^ value); } |
Remarks
This callback will be called by Revit's user interface any time there is a contextual change. Therefore, the callback
must be fast and is not permitted to be blocking in any way.