I am writing MapiContacts from OST file to contacts folder on Exchange Server.
my code is as
MapiMessage msg = ost.ExtractMessage(msgInfo);
MapiContact contact = (MapiContact)msg.ToMapiMessageItem();
string ContactUri = client.CreateContact(exfolder.Uri, contact);
client.MoveItem(ContactUri, mailboxInfo.ContactsUri);
client.ListContacts(mailboxInfo.ContactsUri);
but at the time of execution it shows an error
Invalid For Property
Please suggest me the way to create contact on Exchange Server using EWS