Add-In Event Sender

Jul 29, 2008 at 10:56 PM
Edited Jul 29, 2008 at 10: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 29, 2008 at 11:19 PM
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;