title: C# access msExchRecipientTypeDetails property by System.DirectoryServices.AccountManagement
body: <p>I use the code snippet below from <code>System.DirectoryServices.AccountManagement</code> to search for user in ActiveDirectory.</p>
  
  <p>The <code>user.Name</code> returns successfully, but how can I retrieve other properties from AD for the user, like <code>msExchRecipientTypeDetails</code> since it is not displayed in VisualStudio 2015 intelligence?</p>
  
  <pre><code>using (PrincipalContext adPrincipalContext = new PrincipalContext(ContextType.Domain, DOMAIN, USERNAME, PASSWORD))
  {
      UserPrincipal userPrincipal = new UserPrincipal(adPrincipalContext);                
      userPrincipal.SamAccountName = "user-ID";   
      PrincipalSearcher search = new PrincipalSearcher(userPrincipal);
  
      foreach (var user in search.FindAll())
      {
          Console.WriteLine("hei " + user.Name);         
          // how to retrive other properties from AD like msExchRecipientTypeDetails??          
      }
  }
  </code></pre>