title: C# VSTO Outlook 2007: How to show contact by EntryID
body: <p>How to open Contact using C# VSTO Outlook 2007 addin by EntryID.</p>
  
  <p>Now I am foreaching all contacts in Contact Folder:</p>
  
  <pre><code>string entryid = ...
  
  Outlook.Application outlookApp = new Outlook.Application();
  Outlook.MAPIFolder fldContacts = outlookApp.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts) as Outlook.MAPIFolder;
  foreach (Outlook._ContactItem contact in fldContacts.Items)
  {
      if (contact.EntryID==entryid) {
           contact.Display(false);
           break;
      }
  }
  </code></pre>
  
  <p>but this is not effective code for many contacts in Contact Folder</p>