Add-In Event Sender

Jul 29, 2008 at 11:56 PM
Edited Jul 29, 2008 at 11:59 PM
I have a host application that manages several Add-Ins. These add-ins fire events to notify the host when work is done. When the host inspects the sender of the event, the type appears to be IAddInContractToViewHostAdapter. How would I get the metadata (name, version, etc.) for the add-in that fired the event?
Jul 30, 2008 at 12:19 AM
I figured it out. You need to use the AddInController to get a token from a "live" add-in.

AddInToken token = AddInController.GetAddInController(sender).Token;