I've created a VB.Net application that starts by creating an Outlook application object. I've since created multiple profiles on my PC but can't see any obvious methods to choose a certain Profile when opening the Outlook application programmatically.
I was expecting this line
Dim oa As New Microsoft.Office.Interop.Outlook.Application
to become something like
Dim oa As New Microsoft.Office.Interop.Outlook.Application
oa.OpenProfile("My Second Profile")
What can I do to explicitly set which profile to open, or is something wrong with my understanding of the Outlook object model?