ArcGIS Pro 2.7 API Reference Guide
OnUpdate Method (PlugIn)

ArcGIS.Desktop.Framework.Contracts Namespace > PlugIn Class : OnUpdate Method
Called periodically by the framework once the tool has been created.
Syntax
protected internal virtual void OnUpdate()
Protected Friend Overridable Sub OnUpdate() 
Remarks

The OnUpdate method is called periodically by the framework once the control has been created. This provides an opportunity to run some code within your customization. One typical use of OnUpdate is to determine and set the Enabled property of the control. Note, since OnUpdate is called very frequently, you should avoid lengthy operations in this method as this would reduce the responsiveness of the application user interface.

Control PlugIns are primarily enabled and disabled based on their associated condition. The control object itself will not be loaded or created until its specified condition is initially met, and thereafter, OnUpdate will not be called unless the supplied context is currently satisfied. Note that the loadOnClick attribute is checked after the condition, so delay loaded controls will still appear disabled if their condition hasn’t yet been satisfied.

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

PlugIn Class
PlugIn Members