https://msdn.microsoft.com/ko-kr/library/dd264733.aspx
아웃룩 주소록에 저장하는 방법
private void AddContact() { Outlook.ContactItem newContact = (Outlook.ContactItem) this.Application.CreateItem(Outlook.OlItemType.olContactItem); try { newContact.FirstName = "Jo"; newContact.LastName = "Berry"; newContact.Email1Address = "somebody@example.com"; newContact.CustomerID = "123456"; newContact.PrimaryTelephoneNumber = "(425)555-0111"; newContact.MailingAddressStreet = "123 Main St."; newContact.MailingAddressCity = "Redmond"; newContact.MailingAddressState = "WA"; newContact.Save(); newContact.Display(true); } catch { MessageBox.Show("The new contact was not saved."); } }
[How to: Create a Contact Item]
https://msdn.microsoft.com/en-us/library/office/ff184633.aspx
using Outlook = Microsoft.Office.Interop.Outlook; private void CreateContactExample() { Outlook.ContactItem contact = Application.CreateItem( Outlook.OlItemType.olContactItem) as Outlook.ContactItem; contact.FirstName = "Mellissa"; contact.LastName = "MacBeth"; contact.JobTitle = "Account Representative"; contact.CompanyName = "Contoso Ltd."; contact.OfficeLocation = "36/2529"; contact.BusinessTelephoneNumber = "4255551212 x432"; contact.WebPage = "http://www.contoso.com"; contact.BusinessAddressStreet = "1 Microsoft Way"; contact.BusinessAddressCity = "Redmond"; contact.BusinessAddressState = "WA"; contact.BusinessAddressPostalCode = "98052"; contact.BusinessAddressCountry = "United States of America"; contact.Email1Address = "melissa@contoso.com"; contact.Email1AddressType = "SMTP"; contact.Email1DisplayName = "Melissa MacBeth (mellissa@contoso.com)"; contact.Display(false); contact.ShowCheckPhoneDialog( Outlook.OlContactPhoneNumber. olContactPhoneBusiness); }
Designed by sketchbooks.co.kr / sketchbook5 board skin
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5