I have an old VB6 application that creates Outlook contacts using MAPI and I am in the process of converting it to VB .NET 2010.
The VB6 application allows me to access properties by name using the ItemProperties
property, for example:
objContact.ItemProperties(strPropertyName) = "Accountant"
I can see ItemProperties
in the extended property list but I cannot work out how to access it. Other posts show how to access extended properties for existing contacts but I am trying to create new a contact.
Is it possible to set properties dynamically as you could in MAPI? If not I will end up with a very large CASE statement i.e.
Select Case strPropertyName
Case "JobTitle"
...
Case "Title"
...
End Select