1
작성 Outlook 2010의 추가 기능과 같은 코드에서 Outlook 연락처를 찾기경우 전체 이름 "이름"C#에서
"이름"과 같은 예를 들어하면 FullName
먼저 내가이
string filter = "[FullName] = 'Name'";
을 시도 연락처를 찾는 방법 그리고 그것은 이름에 대해서만 잘 작동하지만 지금은 FullName이 JonName 또는 Peter Pen이 될 수있는 연락처를 찾을 필요가 있습니다 ...
나는 우주의 질문을 사용해야합니다 필터의 문자열이지만 쓸 내용은 무엇입니까?
Outlook.MAPIFolder folderContacts;
Outlook.Items contactItems;
Outlook.ContactItem contact;
folderContacts = Globals.ThisAddIn.Application.ActiveExplorer().Session.
GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts);
contactItems = folderContacts.Items;
string filter = "What should I write here?";
var foundContacts = contactItems.Find(filter);
문자열 필터 = "[FullName] ci_startswith 'Name'"; ci_startswith에 오류가 발생했습니다. VSTO Power Tools를 설치하려고했지만 설치 프로그램에서 VS2008을 찾을 수 없다고 말합니다. VS2010을 사용합니다. 어떻게해야합니까? – Janus