C#アプリケーションを使用して、連絡先をOutlook Contactにプログラムで挿入する必要があります。Microsoft.Office.Interop.Outlook.ContactItem オブジェクトを使用しています。
名前、メールアドレス、電話番号などは設定できますが、「NOTES」のプロパティはないようです
Outlook 連絡先のメモを設定するにはどうすればよいですか?
私が使用しているコードは次のとおりです。
Microsoft.Office.Interop.Outlook._Application outlookObj = new Microsoft.Office.Interop.Outlook.Application();
Microsoft.Office.Interop.Outlook.MAPIFolder fldContacts = (Microsoft.Office.Interop.Outlook.MAPIFolder)outlookObj.Session.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderContacts);
Microsoft.Office.Interop.Outlook.ContactItem newContact = (Microsoft.Office.Interop.Outlook.ContactItem)fldContacts.Items.Add(Microsoft.Office.Interop.Outlook.OlItemType.olContactItem);
newContact.FullName ="Whatever Name";
newContact.Email1Address = "Email@domain.com";
//no property for newContact.Notes :(
newContact.Save();