I am creating outlook addin using visual studio 2015.
I have config two email address in outlook 2016.now when I click on specific inbox I want email address of the user who belongs to the inbox.
I am creating outlook addin using visual studio 2015.
I have config two email address in outlook 2016.now when I click on specific inbox I want email address of the user who belongs to the inbox.
So are you trying to figure out the owner of a particular store? Keep in mind that some stores (e.g. PST) do not have an intrinsic user associated with them - it could be a standalone PST or a PST with multiple POP3/SMTP accounts delivering to that store.
You can loop through the Application.Session.Accounts
collection and check the Account.DeliveryStore
property (compare the store entry ids using Namespace.CompareEntryIDs
).