AnsweredAssumed Answered

Calling OnReadSettingsAsync Explicitly

Question asked by david.lamartina_NCS on Sep 13, 2019
Latest reply on Sep 16, 2019 by cmacleod-esristaff

Is it possible to call OnReadSettingsAsync() explicitly, in addition to overriding the method? There are potentially times at which I'll need to access Project-level settings other than when a Project is opened.


Most notably, I might need to access Project-level settings for an Add-In that a user enables after they have already opened a Project. For instance:


1. User A, who has already licensed our custom Add-In, passes a Project file with Add-In custom settings to User B, who has not yet licensed the Add-In.


2. User B licenses the Add-In, which they had previously installed but not licensed.


3. Now that the Add-In is licensed, its settings need to be read from the Project into the Add-In's in-memory settings object.